* dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
authorDaniel Jacobowitz <drow@false.org>
Fri, 14 Feb 2003 19:05:52 +0000 (19:05 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 14 Feb 2003 19:05:52 +0000 (19:05 +0000)
gdb/ChangeLog
gdb/dwarf2read.c

index 77cdd65fd6b01c74604a78c4bef0a96379be5b1b..23acac20227b35ca40d00b5eb574563d42ea2b88 100644 (file)
@@ -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.
index dbd6460ca78cd41fc1b5c801a99dd223ce2d9bf5..3b067d5464d785dfd95780098743267283895753 100644 (file)
@@ -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