summaryrefslogtreecommitdiffstats
path: root/tests/run-addr2line-test.sh
Commit message (Collapse)AuthorAgeFilesLines
* addr2line: Add --pretty-print option to show all information on one line.Mark Wielaard2015-05-271-0/+6
| | | | | | | | | | | | | | | | | | 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>
* addr2line: Add -a, --address. Print address before for each entry.Mark Wielaard2015-05-271-0/+36
| | | | | | Adds test cases with sample output. Signed-off-by: Mark Wielaard <mjw@redhat.com>
* addr2line: Remove newline from strings returned by getline.Mark Wielaard2013-08-121-0/+74
getline can return strings with a newline as last character when reading from stdin. This could cause confusing symbol lookup failures like: addr2line: cannot find symbol 'foo ' So if the last character of the buf returned by getline is a newline just null-terminate it right there. Also add a new testcase run-addr2line-test.sh. Signed-off-by: Mark Wielaard <mjw@redhat.com>