From: Roland McGrath Date: Sat, 27 Aug 2005 21:07:16 +0000 (+0000) Subject: 2005-08-27 Roland McGrath X-Git-Tag: elfutils-0.120~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0bc2788cfa2012bfbcc68cac74cd39e3f5a8085;p=thirdparty%2Felfutils.git 2005-08-27 Roland McGrath * addrscopes.c (handle_address): Apply bias to PC addresses. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 821d7e548..4ad7a5906 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,7 @@ 2005-08-27 Roland McGrath + * addrscopes.c (handle_address): Apply bias to PC addresses. + * run-funcscopes.sh: New file. * testfile25.bz2: New data file. * Makefile.am (TESTS, EXTRA_DIST): Add them. diff --git a/tests/addrscopes.c b/tests/addrscopes.c index 9870175cd..1526f02a5 100644 --- a/tests/addrscopes.c +++ b/tests/addrscopes.c @@ -118,6 +118,8 @@ handle_address (GElf_Addr pc, Dwfl *dwfl) if (dwarf_lowpc (die, &lowpc) == 0 && dwarf_highpc (die, &highpc) == 0) { + lowpc += cubias; + highpc += cubias; Dwfl_Line *loline = dwfl_getsrc (dwfl, lowpc); Dwfl_Line *hiline = dwfl_getsrc (dwfl, highpc); paddr (": ", lowpc, loline);