[llvm-bugs] [Bug 36438] New: Unable to step into __cxa_allocate_exception
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 19 07:09:05 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36438
Bug ID: 36438
Summary: Unable to step into __cxa_allocate_exception
Product: lldb
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: dantipov at nvidia.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19902
--> https://bugs.llvm.org/attachment.cgi?id=19902&action=edit
Sample program
$ /home/dantipov/.local/llvm-6.0.0/bin/lldb t-throw
(lldb) target create "t-throw"
Current executable set to 't-throw' (x86_64).
(lldb) b t-throw.cc:10
Breakpoint 1: where = t-throw`main + 18 at t-throw.cc:10, address =
0x00000000004009a9
(lldb) r
Process 22330 launched: '/home/dantipov/tmp/t-throw' (x86_64)
Process 22330 stopped
* thread #1, name = 't-throw', stop reason = breakpoint 1.1
frame #0: 0x00000000004009a9 t-throw`main(argc=1, argv=0x00007fffffffe2f8)
at t-throw.cc:10
7 try {
8 try {
9 try {
-> 10 throw new T ();
11 } catch (...) {
12 throw;
13 }
(lldb) step
gotcha
Process 22330 exited with status = 1 (0x00000001)
vs:
$ gdb -q t-throw
Reading symbols from t-throw...done.
(gdb) b t-throw.cc:10
Breakpoint 1 at 0x4009a9: file t-throw.cc, line 10.
(gdb) r
Starting program: /home/dantipov/tmp/t-throw
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Breakpoint 1, main (argc=1, argv=0x7fffffffe2f8) at t-throw.cc:10
10 throw new T ();
(gdb) s
__cxxabiv1::__cxa_allocate_exception (thrown_size=8) at
../../../../libstdc++-v3/libsupc++/eh_alloc.cc:280
280 {
(gdb) bt
#0 __cxxabiv1::__cxa_allocate_exception (thrown_size=8) at
../../../../libstdc++-v3/libsupc++/eh_alloc.cc:280
#1 0x00000000004009b3 in main (argc=1, argv=0x7fffffffe2f8) at t-throw.cc:10
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180219/d7f290f8/attachment-0001.html>
More information about the llvm-bugs
mailing list