aboutsummaryrefslogtreecommitdiff
path: root/binutils/unwind-ia64.h
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2021-12-23 09:55:07 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-02-03 18:41:56 -0800
commitfd3c53675c01472caaa4eb976781b9d6d2d3c53d (patch)
treefbdc0290490829e5835d8da542470167b08cfdaf /binutils/unwind-ia64.h
parent78110c3f7743e8177859fb03db1aeaf327a51459 (diff)
downloadgdb-fd3c53675c01472caaa4eb976781b9d6d2d3c53d.zip
gdb-fd3c53675c01472caaa4eb976781b9d6d2d3c53d.tar.gz
gdb-fd3c53675c01472caaa4eb976781b9d6d2d3c53d.tar.bz2
Support symbol+offset lookup in addr2line
The Linux kernel usually ouputs symbol+offset instead of plain code addresses these days, to avoid leaking ASLR secrets and to handle dynamically loaded modules. Converting those with addr2line is somewhat involved: it requires looking up the symbol first using nm and then manually compute the offset, and then pass it to addr2line. This patch implements the necessary steps directly in addr2line, by looking up the symbol (with demangling if needed) and computing the offset. It's possible that a symbol is ambigious with a hex number. In this case it uses the symbol lookup if the string contains a +. When it isn't ambigious the + is optional.
Diffstat (limited to 'binutils/unwind-ia64.h')
0 files changed, 0 insertions, 0 deletions