diff options
| author | Roland McGrath <[email protected]> | 2005-08-27 21:07:16 +0000 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2005-08-27 21:07:16 +0000 |
| commit | b0bc2788cfa2012bfbcc68cac74cd39e3f5a8085 (patch) | |
| tree | 186bd30b4c05600ea881995fd4c3a03912cdcdf5 | |
| parent | c94e47d268b098cfb8149cbb51b4e7fc9c8889f1 (diff) | |
2005-08-27 Roland McGrath <[email protected]>
* addrscopes.c (handle_address): Apply bias to PC addresses.
| -rw-r--r-- | tests/ChangeLog | 2 | ||||
| -rw-r--r-- | tests/addrscopes.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 821d7e54..4ad7a590 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,7 @@ 2005-08-27 Roland McGrath <[email protected]> + * 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 9870175c..1526f02a 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); |
