summaryrefslogtreecommitdiffstats
path: root/tests/addrscopes.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-08-27 21:07:16 +0000
committerRoland McGrath <[email protected]>2005-08-27 21:07:16 +0000
commitb0bc2788cfa2012bfbcc68cac74cd39e3f5a8085 (patch)
tree186bd30b4c05600ea881995fd4c3a03912cdcdf5 /tests/addrscopes.c
parentc94e47d268b098cfb8149cbb51b4e7fc9c8889f1 (diff)
2005-08-27 Roland McGrath <[email protected]>
* addrscopes.c (handle_address): Apply bias to PC addresses.
Diffstat (limited to 'tests/addrscopes.c')
-rw-r--r--tests/addrscopes.c2
1 files changed, 2 insertions, 0 deletions
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);