[Lldb-commits] [PATCH] Handle ARM ELF symbols properly.

Stephane Sezer sas at fb.com
Wed Sep 10 12:55:41 PDT 2014


Re-sending these, as the first email didn’t reach the mailing list for some reason.



On Sep 9, 2014, at 5:27 PM, Stephane Sezer <sas at fb.com> wrote:

> Two patches here:
>
> [PATCH 1/2] Skip $t* and $a* symbols in ObjectFileELF.
>
> ELF objects contain marker symbols to differentiate between ARM and
> THUMB functions. Instead of storing them internally and having garbage
> show up when symbols are searched for by the user, we can just skip them
> and not store them at all, as we never actually need them.
>
> [PATCH 2/2] Store the thumbness of a function in symbol flags.
>
> This allows us to fixup the address of the symbol as soon as we parse it
> so that lldb is not confused thinking there are two different symbols in
> the binary (one with the thumb bit, one without). Also, differentiating
> between THUMB and ARM symbols allows the debugger to place the right
> type of breakpoint.
>
>
> <0001-Skip-t-and-a-symbols-in-ObjectFileELF.patch><0002-Store-the-thumbness-of-a-function-in-symbol-flags.patch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140910/436552d5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Skip-t-and-a-symbols-in-ObjectFileELF.patch
Type: application/octet-stream
Size: 2467 bytes
Desc: 0001-Skip-t-and-a-symbols-in-ObjectFileELF.patch
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140910/436552d5/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Store-the-thumbness-of-a-function-in-symbol-flags.patch
Type: application/octet-stream
Size: 4285 bytes
Desc: 0002-Store-the-thumbness-of-a-function-in-symbol-flags.patch
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140910/436552d5/attachment-0001.obj>


More information about the lldb-commits mailing list