summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2003-02-14 19:05:52 +0000
committerDaniel Jacobowitz <dan@debian.org>2003-02-14 19:05:52 +0000
commit276df42d090ce626048587bbcad4e23495920cb6 (patch)
treeacec3b7d337c587b637ab183313a457dc40f96b6 /gdb
parent1aa0e8111b5c86242de83d20154e973603daf2d5 (diff)
downloadgdb-276df42d090ce626048587bbcad4e23495920cb6.tar.gz
* dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/dwarf2read.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 77cdd65fd6b..23acac20227 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-14 Daniel Jacobowitz <drow@mvista.com>
+
+ * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
+
2003-02-14 Andrew Cagney <ac131313@redhat.com>
* main.c (tui_version): Delete variable.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index dbd6460ca78..3b067d5464d 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2195,6 +2195,9 @@ dwarf2_get_pc_bounds (struct die_info *die, CORE_ADDR *lowpc,
return 0;
}
+ range_beginning += base;
+ range_end += base;
+
/* FIXME: This is recording everything as a low-high
segment of consecutive addresses. We should have a
data structure for discontiguous block ranges