<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - LLDB-MI: no notification about process stopped if attaching to a process"
href="https://llvm.org/bugs/show_bug.cgi?id=28858">28858</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLDB-MI: no notification about process stopped if attaching to a process
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aetf@unlimitedcodeworks.xyz
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>When attaching to a process using -target-attach command, there's no
notification about process stopped.
This might be related to <a class="bz_bug_link
bz_status_NEW "
title="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")"
href="show_bug.cgi?id=25000">Bug 25000</a>: <a class="bz_bug_link
bz_status_NEW "
title="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")"
href="show_bug.cgi?id=25000">https://llvm.org/bugs/show_bug.cgi?id=25000</a>
Step to reproduce:
1. start lldb-mi
2. start cat without parameter so it runs and waits for input
Shell output:
(gdb)
-target-attach 32002
^done
=thread-group-started,id="i1",pid="32002"
(gdb)
=thread-created,id="1",group-id="i1"
=thread-selected,id="1"
(gdb)
=library-loaded,id="/usr/bin/cat",target-name="/usr/bin/cat",host-name="/usr/bin/cat",symbols-loaded="0",loaded_addr="-",size="0"
(gdb)
=library-loaded,id="[vdso]",target-name="[vdso]",host-name="[vdso]",symbols-loaded="1",symbols-path="",loaded_addr="0x00007ffc1df22000",size="0"
(gdb)
=library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="1",symbols-path="",loaded_addr="0x00007ffc1df22000",size="0"
(gdb)
=library-loaded,id="/usr/lib/libc.so.6",target-name="/usr/lib/libc.so.6",host-name="/usr/lib/libc.so.6",symbols-loaded="0",loaded_addr="-",size="0"
(gdb)
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",loaded_addr="-",size="0"
(gdb)
=library-loaded,id="[vdso]",target-name="[vdso]",host-name="[vdso]",symbols-loaded="1",symbols-path="",loaded_addr="0x00007ffc1df22000",size="0"
=library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="1",symbols-path="",loaded_addr="0x00007ffc1df22000",size="0"
=library-loaded,id="/usr/lib/libc.so.6",target-name="/usr/lib/libc.so.6",host-name="/usr/lib/libc.so.6",symbols-loaded="0",loaded_addr="-",size="0"
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",loaded_addr="-",size="0"
(gdb)
=library-loaded,id="/usr/bin/cat",target-name="/usr/bin/cat",host-name="/usr/bin/cat",symbols-loaded="0",loaded_addr="-",size="0"
<--- HERE *stopped notification should appear
process status
Process 32002 stopped
* thread #1: tid = 32002, 0x00007f47e4489710 libc.so.6`__GI___read + 16, name =
'cat', stop reason = signal SIGSTOP
frame #0: 0x00007f47e4489710 libc.so.6`__GI___read + 16
libc.so.6`__GI___read:
-> 0x7f47e4489710 <+16>: cmpq $-0xfff, %rax ; imm =
0xFFFFFFFFFFFFF001
0x7f47e4489716 <+22>: jae 0x7f47e4489749 ; <+73>
0x7f47e4489718 <+24>: retq
0x7f47e4489719 <+25>: subq $0x8, %rsp
^done
(gdb)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>