From b0bc2788cfa2012bfbcc68cac74cd39e3f5a8085 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 27 Aug 2005 21:07:16 +0000 Subject: [PATCH] 2005-08-27 Roland McGrath * addrscopes.c (handle_address): Apply bias to PC addresses. --- tests/ChangeLog | 2 ++ tests/addrscopes.c | 2 ++ 2 files changed, 4 insertions(+) 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); -- 2.47.2