[lldb-dev] [Bug 28858] New: LLDB-MI: no notification about process stopped if attaching to a process
via lldb-dev
lldb-dev at lists.llvm.org
Thu Aug 4 23:40:25 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28858
Bug ID: 28858
Summary: LLDB-MI: no notification about process stopped if
attaching to a process
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: aetf at unlimitedcodeworks.xyz
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
When attaching to a process using -target-attach command, there's no
notification about process stopped.
This might be related to Bug 25000: https://llvm.org/bugs/show_bug.cgi?id=25000
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)
--
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/20160805/4d797bb8/attachment.html>
More information about the lldb-dev
mailing list