]> git.ipfire.org Git - thirdparty/elfutils.git/commit
addr2line: Add --pretty-print option to show all information on one line.
authorMark Wielaard <mjw@redhat.com>
Wed, 20 May 2015 12:09:46 +0000 (14:09 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 27 May 2015 15:17:51 +0000 (17:17 +0200)
commitb23a5b2dda2a0beaaa12c8174808b5d0bd5996ea
tree788c6ff78cdd2901d8253946ddab3e704803cb7a
parentcd2da6c37b468c7ac66d2edcd83f8bcbaeb793ec
addr2line: Add --pretty-print option to show all information on one line.

This adds an option --pretty-print to eu-addr2line to show all information
on one line and all inlines on a line of their own. This mimics the same
option from binutils addr2line, but without the short option variant -p.
Since we already use -p to select the process.

Example output:

eu-addr2line --pretty-print -s -i -f -C -p$(pidof firefox) 0x00007f368c6f8915
mozilla::ReentrantMonitor::Wait(unsigned int) at ReentrantMonitor.h:92
 (inlined by) mozilla::ReentrantMonitorAutoEnter::Wait(unsigned int) at ReentrantMonitor.h:190

A couple of tests were added to check the output matches that of
binutils addr2line.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
NEWS
src/ChangeLog
src/addr2line.c
tests/ChangeLog
tests/run-addr2line-i-test.sh
tests/run-addr2line-test.sh