2005-08-27  Roland McGrath  <roland@redhat.com>

	* addrscopes.c (handle_address): Apply bias to PC addresses.

diff --git a/tests/ChangeLog b/tests/ChangeLog
index 821d7e5..4ad7a59 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -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.
diff --git a/tests/addrscopes.c b/tests/addrscopes.c
index 9870175..1526f02 100644
--- a/tests/addrscopes.c
+++ b/tests/addrscopes.c
@@ -118,6 +118,8 @@
 	  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);