]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
2005-08-27 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Sat, 27 Aug 2005 21:07:16 +0000 (21:07 +0000)
committerRoland McGrath <roland@redhat.com>
Sat, 27 Aug 2005 21:07:16 +0000 (21:07 +0000)
* addrscopes.c (handle_address): Apply bias to PC addresses.

tests/ChangeLog
tests/addrscopes.c

index 821d7e548343fea54cbebc83897d7e973d19a671..4ad7a5906f243cc6c314bcea07553ec977a7bc43 100644 (file)
@@ -1,5 +1,7 @@
 2005-08-27  Roland McGrath  <roland@redhat.com>
 
+       * 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.
index 9870175cd8c43685d8a426b897b712cf0d68b9d0..1526f02a5ccd361e9797db3c39168838b3b2df22 100644 (file)
@@ -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);