[lldb-dev] Need help on LLDB on Fedora x86_64 Linux
Xu,Chiheng
chiheng.xu at gmail.com
Thu Mar 6 06:05:20 PST 2014
Hi, list,
When I use lastest LLDB(and Clang/LLVM) to debug a hello world program
on Fedora 18 x86_64 Linux. I encounter a crash of LLDB. I have
debugged LLDB using gdb-7.6.2, and found that the offending line is :
Breakpoint 3, llvm::MCExternalSymbolizer::tryAddingSymbolicOperand (
this=0x7fe470000c50, MI=..., cStream=..., Value=258220247920,
Address=258220234131, IsBranch=true, Offset=1, InstSize=4)
at /mnt/work/llvm/lib/MC/MCExternalSymbolizer.cpp:135
135 Expr = RelInfo->createExprForCAPIVariantKind(Expr,
SymbolicOp.VariantKind);
where RelInfo (of type std::unique_ptr<MCRelocationInfo>) is 0, so
LLDB crash, I'm new to this, can some one explain this to me.
LLDB does not has this problem about 2 weeks ago.
Attached is the debug log.
Thank you.
--
Xu,Chiheng(εΎζζ)
-------------- next part --------------
[xch at fedora ~]$ gdb
GNU gdb (GDB) 7.6.2
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) attach 2904
Attaching to process 2904
Reading symbols from /mnt/work/llvm-debug-gcc/bin/lldb-3.5.0...done.
Reading symbols from /mnt/work/llvm-debug-gcc/bin/../lib/liblldb.so.3.5.0...done.
Loaded symbols for /mnt/work/llvm-debug-gcc/bin/../lib/liblldb.so.3.5.0
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libtinfo.so.5...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libtinfo.so.5
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
[New LWP 2905]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libz.so.1...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /lib64/libedit.so.0...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libedit.so.0
Reading symbols from /lib64/libpanel.so.5...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libpanel.so.5
Reading symbols from /lib64/libncurses.so.5...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libncurses.so.5
Reading symbols from /lib64/libpython2.7.so.1.0...(no debugging symbols found)...done.
Loaded symbols for /lib64/libpython2.7.so.1.0
Reading symbols from /usr/local/lib64/libstdc++.so.6...done.
warning: File "/usr/local/lib64/libstdc++.so.6.0.18-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /usr/local/lib64/libstdc++.so.6.0.18-gdb.py
line to your configuration file "/home/xch/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/xch/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
Loaded symbols for /usr/local/lib64/libstdc++.so.6
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /usr/local/lib64/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib64/libgcc_s.so.1
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libutil.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libutil.so.1
Reading symbols from /usr/lib64/python2.7/lib-dynload/syslog.so...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/python2.7/lib-dynload/syslog.so
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2
0x0000003c1fae57ad in read () from /lib64/libc.so.6
(gdb) b CommandObjectProcessLaunch::DoExecute
Breakpoint 1 at 0x7fe47d44bd47: file /mnt/work/llvm/tools/lldb/source/Commands/CommandObjectProcess.cpp, line 188.
(gdb) b lldb_private::Target::Launch
Breakpoint 2 at 0x7fe47d216e68: file /mnt/work/llvm/tools/lldb/source/Target/Target.cpp, line 2326.
(gdb) b /mnt/work/llvm/lib/MC/MCExternalSymbolizer.cpp:135
Breakpoint 3 at 0x7fe47edcf70d: file /mnt/work/llvm/lib/MC/MCExternalSymbolizer.cpp, line 135.
(gdb) c
Continuing.
Breakpoint 1, CommandObjectProcessLaunch::DoExecute (this=0xc0ac40,
launch_args=..., result=...)
at /mnt/work/llvm/tools/lldb/source/Commands/CommandObjectProcess.cpp:188
188 Debugger &debugger = m_interpreter.GetDebugger();
(gdb) c
Continuing.
Breakpoint 2, lldb_private::Target::Launch (this=0xc89750, listener=...,
launch_info=...) at /mnt/work/llvm/tools/lldb/source/Target/Target.cpp:2326
2326 Error error;
(gdb) c
Continuing.
[New Thread 0x7fe46ffff700 (LWP 2976)]
[New Thread 0x7fe46f7fe700 (LWP 2978)]
[New Thread 0x7fe46effd700 (LWP 2979)]
[New Thread 0x7fe46e7fc700 (LWP 2980)]
[Switching to Thread 0x7fe47482e700 (LWP 2905)]
Breakpoint 3, llvm::MCExternalSymbolizer::tryAddingSymbolicOperand (
this=0x7fe470000c50, MI=..., cStream=..., Value=258220247920,
Address=258220234131, IsBranch=true, Offset=1, InstSize=4)
at /mnt/work/llvm/lib/MC/MCExternalSymbolizer.cpp:135
135 Expr = RelInfo->createExprForCAPIVariantKind(Expr, SymbolicOp.VariantKind);
(gdb) p RelInfo
$1 = {
_M_t = {<std::_Tuple_impl<0ul, llvm::MCRelocationInfo*, std::default_delete<llvm::MCRelocationInfo> >> = {<std::_Tuple_impl<1ul, std::default_delete<llvm::MCRelocationInfo> >> = {<std::_Tuple_impl<2ul>> = {<No data fields>}, <std::_Head_base<1ul, std::default_delete<llvm::MCRelocationInfo>, true>> = {<std::default_delete<llvm::MCRelocationInfo>> = {<No data fields>}, <No data fields>}, <No data fields>}, <std::_Head_base<0ul, llvm::MCRelocationInfo*, false>> = {
_M_head_impl = 0x0}, <No data fields>}, <No data fields>}}
(gdb) p (llvm::MCRelocationInfo*) RelInfo
$2 = (llvm::MCRelocationInfo *) 0x0
(gdb)
[xch at fedora work]$ gdb
GNU gdb (GDB) 7.6.2
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) attach 2226
Attaching to process 2226
Reading symbols from /mnt/work/llvm-debug-gcc/bin/lldb-3.5.0...done.
Reading symbols from /mnt/work/llvm-debug-gcc/bin/../lib/liblldb.so.3.5.0...done.
Loaded symbols for /mnt/work/llvm-debug-gcc/bin/../lib/liblldb.so.3.5.0
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libtinfo.so.5...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libtinfo.so.5
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
[New LWP 2227]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libz.so.1...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /lib64/libedit.so.0...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libedit.so.0
Reading symbols from /lib64/libpanel.so.5...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libpanel.so.5
Reading symbols from /lib64/libncurses.so.5...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /lib64/libncurses.so.5
Reading symbols from /lib64/libpython2.7.so.1.0...(no debugging symbols found)...done.
Loaded symbols for /lib64/libpython2.7.so.1.0
Reading symbols from /usr/local/lib64/libstdc++.so.6...done.
warning: File "/usr/local/lib64/libstdc++.so.6.0.18-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /usr/local/lib64/libstdc++.so.6.0.18-gdb.py
line to your configuration file "/home/xch/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/xch/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
Loaded symbols for /usr/local/lib64/libstdc++.so.6
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /usr/local/lib64/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib64/libgcc_s.so.1
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libutil.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libutil.so.1
Reading symbols from /usr/lib64/python2.7/lib-dynload/syslog.so...warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time
(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/python2.7/lib-dynload/syslog.so
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2
0x0000003c1fae57ad in read () from /lib64/libc.so.6
(gdb) b CommandObjectProcessLaunch::DoExecute
Breakpoint 1 at 0x7f15a64aad47: file /mnt/work/llvm/tools/lldb/source/Commands/CommandObjectProcess.cpp, line 188.
(gdb) c
Continuing.
Breakpoint 1, CommandObjectProcessLaunch::DoExecute (this=0xf0fc40,
launch_args=..., result=...)
at /mnt/work/llvm/tools/lldb/source/Commands/CommandObjectProcess.cpp:188
188 Debugger &debugger = m_interpreter.GetDebugger();
(gdb) bt
#0 CommandObjectProcessLaunch::DoExecute (this=0xf0fc40, launch_args=...,
result=...)
at /mnt/work/llvm/tools/lldb/source/Commands/CommandObjectProcess.cpp:188
#1 0x00007f15a615ed19 in lldb_private::CommandObjectParsed::Execute (
this=0xf0fc40, args_string=0xf823f8 "-c/bin/sh --", result=...)
at /mnt/work/llvm/tools/lldb/source/Interpreter/CommandObject.cpp:1031
#2 0x00007f15a614d976 in lldb_private::CommandInterpreter::HandleCommand (
this=0xe87410, command_line=0xf81cd8 "r",
lazy_add_to_history=lldb_private::eLazyBoolCalculate, result=...,
override_context=0x0, repeat_on_empty_command=true,
no_context_switching=false)
at /mnt/work/llvm/tools/lldb/source/Interpreter/CommandInterpreter.cpp:1858
#3 0x00007f15a61516ed in lldb_private::CommandInterpreter::IOHandlerInputComplete (this=0xe87410, io_handler=..., line=...)
at /mnt/work/llvm/tools/lldb/source/Interpreter/CommandInterpreter.cpp:2995
#4 0x00007f15a6075529 in lldb_private::IOHandlerEditline::Run (this=0xf6b6e0)
at /mnt/work/llvm/tools/lldb/source/Core/IOHandler.cpp:552
#5 0x00007f15a605fad2 in lldb_private::Debugger::ExecuteIOHanders (
this=0xe92c20) at /mnt/work/llvm/tools/lldb/source/Core/Debugger.cpp:864
#6 0x00007f15a6151d75 in lldb_private::CommandInterpreter::RunCommandInterpreter (this=0xe87410, auto_handle_events=true, spawn_thread=false)
at /mnt/work/llvm/tools/lldb/source/Interpreter/CommandInterpreter.cpp:3125
#7 0x00007f15a63e6b23 in lldb::SBDebugger::RunCommandInterpreter (
this=0x7fff9e90e210, auto_handle_events=true, spawn_thread=false)
at /mnt/work/llvm/tools/lldb/source/API/SBDebugger.cpp:961
#8 0x0000000000408c3e in Driver::MainLoop (this=0x7fff9e90e1f0)
at /mnt/work/llvm/tools/lldb/tools/driver/Driver.cpp:967
#9 0x0000000000408fe7 in main (argc=1, argv=0x7fff9e90e3e8,
envp=0x7fff9e90e3f8)
at /mnt/work/llvm/tools/lldb/tools/driver/Driver.cpp:1066
(gdb) f
#0 CommandObjectProcessLaunch::DoExecute (this=0xf0fc40, launch_args=...,
result=...)
at /mnt/work/llvm/tools/lldb/source/Commands/CommandObjectProcess.cpp:188
188 Debugger &debugger = m_interpreter.GetDebugger();
(gdb) l
183
184 protected:
185 bool
186 DoExecute (Args& launch_args, CommandReturnObject &result)
187 {
188 Debugger &debugger = m_interpreter.GetDebugger();
189 Target *target = debugger.GetSelectedTarget().get();
190 // If our listener is NULL, users aren't allows to launch
191 ModuleSP exe_module_sp = target->GetExecutableModule();
192
(gdb) n
189 Target *target = debugger.GetSelectedTarget().get();
(gdb) n
191 ModuleSP exe_module_sp = target->GetExecutableModule();
(gdb)
193 if (exe_module_sp == NULL)
(gdb)
200 StateType state = eStateInvalid;
(gdb)
202 if (!StopProcessIfNecessary(m_exe_ctx.GetProcessPtr(), state, result))
(gdb)
205 const char *target_settings_argv0 = target->GetArg0();
(gdb)
207 if (target->GetDisableASLR())
(gdb)
208 m_options.launch_info.GetFlags().Set (eLaunchFlagDisableASLR);
(gdb)
210 if (target->GetDisableSTDIO())
(gdb)
213 Args environment;
(gdb)
214 target->GetEnvironmentAsArgs (environment);
(gdb)
215 if (environment.GetArgumentCount() > 0)
(gdb)
218 if (target_settings_argv0)
(gdb)
220 m_options.launch_info.GetArguments().AppendArgument (target_settings_argv0);
(gdb)
221 m_options.launch_info.SetExecutableFile(exe_module_sp->GetPlatformFileSpec(), false);
(gdb)
228 if (launch_args.GetArgumentCount() == 0)
(gdb)
230 Args target_setting_args;
(gdb) f
#0 CommandObjectProcessLaunch::DoExecute (this=0xf0fc40, launch_args=...,
result=...)
at /mnt/work/llvm/tools/lldb/source/Commands/CommandObjectProcess.cpp:230
230 Args target_setting_args;
(gdb) n
231 if (target->GetRunArguments(target_setting_args))
(gdb)
241 Error error = target->Launch(debugger.GetListener(), m_options.launch_info);
(gdb)
[New Thread 0x7f159d08c700 (LWP 2419)]
[New Thread 0x7f159c88b700 (LWP 2421)]
[New Thread 0x7f158ffff700 (LWP 2422)]
[New Thread 0x7f158f7fe700 (LWP 2423)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f159d88d700 (LWP 2227)]
0x00007f15a7e2e720 in llvm::MCExternalSymbolizer::tryAddingSymbolicOperand (
this=0x7f1598000c50, MI=..., cStream=..., Value=258220247920,
Address=258220234131, IsBranch=true, Offset=1, InstSize=4)
at /mnt/work/llvm/lib/MC/MCExternalSymbolizer.cpp:135
135 Expr = RelInfo->createExprForCAPIVariantKind(Expr, SymbolicOp.VariantKind);
(gdb) f
#0 0x00007f15a7e2e720 in llvm::MCExternalSymbolizer::tryAddingSymbolicOperand
(this=0x7f1598000c50, MI=..., cStream=..., Value=258220247920,
Address=258220234131, IsBranch=true, Offset=1, InstSize=4)
at /mnt/work/llvm/lib/MC/MCExternalSymbolizer.cpp:135
135 Expr = RelInfo->createExprForCAPIVariantKind(Expr, SymbolicOp.VariantKind);
(gdb) bt
#0 0x00007f15a7e2e720 in llvm::MCExternalSymbolizer::tryAddingSymbolicOperand
(this=0x7f1598000c50, MI=..., cStream=..., Value=258220247920,
Address=258220234131, IsBranch=true, Offset=1, InstSize=4)
at /mnt/work/llvm/lib/MC/MCExternalSymbolizer.cpp:135
#1 0x00007f15a7e1d23a in llvm::MCDisassembler::tryAddingSymbolicOperand (
this=0x7f1598000f90, Inst=..., Value=258220247920, Address=258220234131,
IsBranch=true, Offset=1, InstSize=4)
at /mnt/work/llvm/lib/MC/MCDisassembler.cpp:47
#2 0x00007f15a79a46f1 in tryAddingSymbolicOperand (Value=258220247920,
isBranch=true, Address=258220234131, Offset=1, Width=4, MI=...,
Dis=0x7f1598000f90)
at /mnt/work/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp:210
#3 0x00007f15a79a4d7a in translateImmediate (mcInst=..., immediate=13784,
operand=..., insn=..., Dis=0x7f1598000f90)
at /mnt/work/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp:387
#4 0x00007f15a79a9e81 in translateOperand (mcInst=..., operand=..., insn=...,
Dis=0x7f1598000f90)
at /mnt/work/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp:740
#5 0x00007f15a79aa0ab in translateInstruction (mcInst=..., insn=...,
Dis=0x7f1598000f90)
at /mnt/work/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp:796
#6 0x00007f15a79a45f8 in llvm::X86Disassembler::X86GenericDisassembler::getInstruction (this=0x7f1598000f90, instr=..., size=@0x7f159d88c3b0: 5, region=...,
address=258220234131, vStream=..., cStream=...)
at /mnt/work/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp:160
#7 0x00007f15a62b91fd in DisassemblerLLVMC::LLVMCDisassembler::GetMCInst (
this=0x7f1598000dc0, opcode_data=0x7f1598000bc3 "\350\330\065",
opcode_data_len=57, pc=258220234131, mc_inst=...)
at /mnt/work/llvm/tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp:528
#8 0x00007f15a62b7eb5 in InstructionLLVMC::Decode (this=0x7f1598001330,
disassembler=..., data=..., data_offset=3)
at /mnt/work/llvm/tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp:212
#9 0x00007f15a62b9ea9 in DisassemblerLLVMC::DecodeInstructions (
this=0x7f1598000b00, base_addr=..., data=..., data_offset=0,
num_instructions=4294967295, append=false, data_from_file=false)
at /mnt/work/llvm/tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLL---Type <return> to continue, or q <return> to quit---
VMC.cpp:721
#10 0x00007f15a6110012 in lldb_private::Disassembler::ParseInstructions (
this=0x7f1598000b00, exe_ctx=0x7f159d88c7e0, range=..., error_strm_ptr=
0x7f159d88cb90, prefer_file_cache=false)
at /mnt/work/llvm/tools/lldb/source/Core/Disassembler.cpp:1105
#11 0x00007f15a610d153 in lldb_private::Disassembler::Disassemble (
debugger=..., arch=..., plugin_name=0x0, flavor=0x0, exe_ctx=...,
disasm_range=..., num_instructions=4, num_mixed_context_lines=0,
options=8, strm=...)
at /mnt/work/llvm/tools/lldb/source/Core/Disassembler.cpp:316
#12 0x00007f15a6260785 in lldb_private::StackFrame::GetStatus (this=0xfad2a0,
strm=..., show_frame_info=true, show_source=true, frame_marker=0x0)
at /mnt/work/llvm/tools/lldb/source/Target/StackFrame.cpp:1492
#13 0x00007f15a6263a59 in lldb_private::StackFrameList::GetStatus (
this=0xfac8a0, strm=..., first_frame=0, num_frames=1,
show_frame_info=true, num_frames_with_source=1, selected_frame_marker=0x0)
at /mnt/work/llvm/tools/lldb/source/Target/StackFrameList.cpp:920
#14 0x00007f15a628be02 in lldb_private::Thread::GetStatus (
this=0x7f1590000910, strm=..., start_frame=0, num_frames=1,
num_frames_with_source=1)
at /mnt/work/llvm/tools/lldb/source/Target/Thread.cpp:1990
#15 0x00007f15a6247fff in lldb_private::Process::GetThreadStatus (
this=0xfa3ea0, strm=..., only_threads_with_stop_reason=true,
start_frame=0, num_frames=1, num_frames_with_source=1)
at /mnt/work/llvm/tools/lldb/source/Target/Process.cpp:5916
#16 0x00007f15a6066b37 in lldb_private::Debugger::HandleProcessEvent (
this=0xe92c20, event_sp=...)
at /mnt/work/llvm/tools/lldb/source/Core/Debugger.cpp:2939
#17 0x00007f15a60673bc in lldb_private::Debugger::DefaultEventHandler (
this=0xe92c20) at /mnt/work/llvm/tools/lldb/source/Core/Debugger.cpp:3079
#18 0x00007f15a60677f6 in lldb_private::Debugger::EventHandlerThread (
arg=0xe92c20) at /mnt/work/llvm/tools/lldb/source/Core/Debugger.cpp:3141
#19 0x00007f15a6045dd8 in ThreadCreateTrampoline (arg=0xf81c70)
at /mnt/work/llvm/tools/lldb/source/Host/common/Host.cpp:629
#20 0x0000003c20207d15 in start_thread () from /lib64/libpthread.so.0
#21 0x0000003c1faf253d in clone () from /lib64/libc.so.6
(gdb)
./llvm-debug-gcc/bin/lldb
target create a.out
b 6
r
ps -aux | grep lldb
b CommandObjectProcessLaunch::DoExecute
b lldb_private::Target::Launch
b /mnt/work/llvm/lib/MC/MCExternalSymbolizer.cpp:135
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.c
Type: text/x-csrc
Size: 103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140306/7ab7f693/attachment.c>
More information about the lldb-dev
mailing list