[Bug 25000] New: lldb-mi does not receive broadcasted notification from Core/Process about process stopped if StopAtEntry was requested ("process launch -s" OR "-exec-run --start")

Bug ID 25000
Summary lldb-mi does not receive broadcasted notification from Core/Process about process stopped if StopAtEntry was requested (“process launch -s” OR “-exec-run --start”)
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter engineer.developer@gmail.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

Created attachment 14960 [details]
Debug session log

Problem is Linux lldb specific only.

lldb-mi receives event notifications if they broadcasted from core lldb
modules.

See review also: [http://reviews.llvm.org/D12977](http://reviews.llvm.org/D12977)

You can use following testcase:

$ bin/lldb-mi echo
(gdb)
-file-exec-and-symbols "echo"
^done
(gdb)
=library-loaded,id="/bin/echo",target-name="/bin/echo",host-name="/bin/echo",symbols-loaded="0",loaded_addr="-",size="0"
-exec-run --start
^running
=thread-group-started,id="i1",pid="28031"
(gdb)
=thread-created,id="1",group-id="i1"
=thread-selected,id="1"
(gdb)
=library-loaded,id="/bin/echo",target-name="/bin/echo",host-name="/bin/echo",symbols-loaded="0",loaded_addr="-",size="0"

<--- HERE *stopped notification should appear as in case of OSX or iOS
platforms.

process status
Process 28031 stopped
* thread #1: tid = 28031, 0x00007ffff7dd9cd0, name = 'echo', stop reason =
signal SIGSTOP
    frame #0: 0x00007ffff7dd9cd0
->  0x7ffff7dd9cd0: movq   %rsp, %rdi
    0x7ffff7dd9cd3: callq  0x7ffff7dddc30
    0x7ffff7dd9cd8: movq   %rax, %r12
    0x7ffff7dd9cdb: movl   0x22310f(%rip), %eax
^done
(gdb)