[Lldb-commits] Patch for Review: Linux split symbol support

Michael Sartain mikesart at valvesoftware.com
Thu Jun 13 14:49:05 PDT 2013


http://llvm-reviews.chandlerc.com/D960

This patch creates a unified section list in the module which contains
sections from the object file and possibly sections from the symbol vendor.
GetSymtab() and other routines have been modified to (potentially) operate
off that unified section list. Host/linux/Symbols.cpp will search in the
various Linux-y spots for the split symbol files.

Using this patch I was able to debug a simple hello world app, set a
breakpoint in vfprintf, and have it step through the glibc source. Had to
do this to get my actual source file loaded as well:
    settings set target.source-map "/build/buildd/"
"/home/mikesart/data/src/"

Only oddity right now is "target modules dump sections" is listing some of
the modules twice, so I need to debug that before committing. I also
haven't tested this on any platforms other than Linux, and I need to run
through the unit tests. But I thought I'd throw this out for some high
level review while doing all that.

Thanks to Greg for the help in getting this all worked out...
 -Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20130613/0af81fd5/attachment.html>


More information about the lldb-commits mailing list