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

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@lists.llvm.org
Reporter mgorny@gentoo.org
CC jdevlieghere@apple.com, llvm-bugs@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.