[lldb-dev] using lldb's backtrace as a library

Timothee Cour timothee.cour2 at gmail.com
Tue Mar 4 14:14:33 PST 2014


On Tue, Mar 4, 2014 at 1:58 PM, Jean-Daniel Dupas <dev at xenonium.com> wrote:

>
> Le 4 mars 2014 à 22:48, jingham at apple.com a écrit :
>
> > No, nothing has changed.  lldb only operates in "control other process"
> mode, not in "observe other process" mode, and controlling yourself is a
> neat trick you might be able to manage, but would add a lot of complexity
> for no clear benefit for most of the usages of lldb.
> >
> > On OSX, you can use CoreSymbolication to take a backtrace of yourself.
>  There are likely similar facilities on other systems.
>
> That would be great but CoreSymbolication is a private undocumented
> framework from a third party developer point of view ;-)
>
> That said, OS X provide a couple of functions to get backtrace. see 'man
> backtrace' for details.
>

backtrace/backtrace_symbols /atos(osx)/addr2line(linux) is not a viable
alternative, as it doesn't give proper/accurate line numbers in many cases,
unlike what lldb provides.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140304/bb8c6dbb/attachment.html>


More information about the lldb-dev mailing list