[lldb-dev] [Bug 51459] New: 'process launch -s' does not work correctly over remote lldb-server

via lldb-dev lldb-dev at lists.llvm.org
Thu Aug 12 09:06:44 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51459

            Bug ID: 51459
           Summary: 'process launch -s' does not work correctly over
                    remote lldb-server
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: mgorny at gentoo.org
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

If I let LLDB start a new instance of lldb-server, I can launch the process
stopped:

$ ./bin/lldb
(lldb) target create a.out 
Current executable set to '/home/mgorny/git/llvm-project/build/a.out' (x86_64).
(lldb) process launch -s
Process 2093834 launched: '/home/mgorny/git/llvm-project/build/a.out' (x86_64)
(lldb) cont
Process 2093834 resuming
Process 2093834 exited with status = 0 (0x00000000) 


but if I use a remote lldb-server, LLDB seems to end up in some weird state
that's simultaneously stopped and running:

$ ./bin/lldb
(lldb) target create a.out
Current executable set to '/home/mgorny/git/llvm-project/build/a.out' (x86_64).
(lldb) gdb-remote 1234
(lldb) process launch -s
Process 2106325 launched: '/home/mgorny/git/llvm-project/build/a.out' (x86_64)
(lldb) cont
error: Failed to resume process: Resume request failed - process still
running..
(lldb) process interrupt
error: Failed to halt process: Process is not running.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20210812/9e3bf58a/attachment.html>


More information about the lldb-dev mailing list