Re: [lldb-dev] Loading debug symbols (C++, Ubuntu 14.04)

2016-05-09 Thread Stefan Kratochwil via lldb-dev
describing should work out of the box, so the fact that you are having to add the symbols manually is a bug. I haven't tried it with the apache binary specifically, but lldb can certainly find external debug symbols for libc (definitely on ubuntu 14.04, as that's what I use). We need to

Re: [lldb-dev] Loading debug symbols (C++, Ubuntu 14.04)

2016-05-09 Thread Stefan Kratochwil via lldb-dev
what is different in your case. The most important function here is SymbolVendorELF::CreateInstance. Could you step through that function, and see why it fails to find the file? On 7 May 2016 at 19:45, Stefan Kratochwil via lldb-dev wrote: Hi, I need to gather information about variables on

[lldb-dev] Loading debug symbols (C++, Ubuntu 14.04)

2016-05-07 Thread Stefan Kratochwil via lldb-dev
Hi, I need to gather information about variables on the stack frames of a given program, lets say apache2 (httpd), using the C++ flavour of the lldb scripting bridge. Now, if I attach to the corresponding process id, lldb does not find any debug symbols, although I have installed the debug s

Re: [lldb-dev] Accessing DWARF information from C++

2015-10-30 Thread Stefan Kratochwil via lldb-dev
, Stefan Kratochwil via lldb-dev wrote: Hi altogether, I currently am developing an application where I need to access the DWARF debugging information of my target process and its loaded .so files. In more detail, I need to match type information of certain entities within my code and its

Re: [lldb-dev] Accessing DWARF information from C++

2015-10-13 Thread Stefan Kratochwil via lldb-dev
Hi, well, I found the llvm-dwarfdump tool in the tools directory *facepalm*... I'll use that as a reference. That leaves the question about the two separate DWARF implementations. Cheers, Stefan On 10/13/2015 11:42 AM, Stefan Kratochwil via lldb-dev wrote: Hi altogether, I current

[lldb-dev] Accessing DWARF information from C++

2015-10-13 Thread Stefan Kratochwil via lldb-dev
Hi altogether, I currently am developing an application where I need to access the DWARF debugging information of my target process and its loaded .so files. In more detail, I need to match type information of certain entities within my code and its dynamically linked libraries. I already

[lldb-dev] Dealing with executable libraries

2015-10-05 Thread Stefan Kratochwil via lldb-dev
Hi, I am wondering how to deal with binaries that are both executable and dynamic objects, such as many executables under /usr/sbin. When I try to attach to a process (e.g. apache2) using the method lldb::SBTarget::AttachToProcessWithID() (C++ flavor of the LLDB ScriptingBridge), the method Objec

Re: [lldb-dev] lldb::SBDebugger::Terminate() hangs in deadlock

2015-09-28 Thread Stefan Kratochwil via lldb-dev
to a bug in llvm.org/bugs. I am currently using svn revision 247535 of llvm and lldb, and I know that my code was working with svn revision 229496 This sounds like a pretty big revision range. It would help if you could narrow it down a bit. pl On 28 September 2015 at 09:12, Stefan Kratochwi

[lldb-dev] lldb::SBDebugger::Terminate() hangs in deadlock

2015-09-28 Thread Stefan Kratochwil via lldb-dev
Hi, I've got a problem with lldb deadlocking upon a call to lldb::SBDebugger::Terminate(). I am currently using svn revision 247535 of llvm and lldb, and I know that my code was working with svn revision 229496. In short, I am doing the following steps: lldb_debugger = lldb::SBDebugger::