[lldb-dev] [Bug 44760] New: stop-hook doesn't work when user make ctrl-c interrupt
via lldb-dev
lldb-dev at lists.llvm.org
Mon Feb 3 08:14:31 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44760
Bug ID: 44760
Summary: stop-hook doesn't work when user make ctrl-c interrupt
Product: lldb
Version: unspecified
Hardware: PC
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: slei.casper at gmail.com
CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org
lldb doesn't consider stop-hook when user make ctrl-c interrupt.
step to reproduce:
1. write the following content to /tmp/a.py
```
def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand('target stop-hook add --one-liner "register read
rax"')
```
2. debug any program with the following lldb command
(lldb) target create "./a.out"
Current executable set to './a.out' (x86_64).
(lldb) command script import "/tmp/a.py"
Stop hook #1 added.
(lldb) r
rax = 0x0000000000000000
Process 9563 launched: '/tmp/a.out' (x86_64)
Process 9563 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff6b9babba libsystem_kernel.dylib`__semwait_signal + 10
libsystem_kernel.dylib`__semwait_signal:
-> 0x7fff6b9babba <+10>: jae 0x7fff6b9babc4 ; <+20>
0x7fff6b9babbc <+12>: movq %rax, %rdi
0x7fff6b9babbf <+15>: jmp 0x7fff6b9b968d ; cerror
0x7fff6b9babc4 <+20>: retq
Target 0: (a.out) stopped.
expected: after user make ctrl-c interrupt, lldb should print rax register, but
lldb doesn't print it.
--
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/20200203/6c399c06/attachment.html>
More information about the lldb-dev
mailing list