* dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
authorDoug Evans <dje@google.com>
Tue, 2 Mar 2010 17:19:58 +0000 (17:19 +0000)
committerDoug Evans <dje@google.com>
Tue, 2 Mar 2010 17:19:58 +0000 (17:19 +0000)
lowpc,highpc args to addrmap_set_empty.

gdb/ChangeLog
gdb/dwarf2read.c

index d21e9e8eaca5cc0f2abb742c441eb1a10d99a8a7..4140f2c336b7378cd93e048fd68679e3d7245b65 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-02  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
+       lowpc,highpc args to addrmap_set_empty.
+
 2010-03-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        * amd64-tdep.c (amd64_byte_names): New.
index a05c946c28ea88ab0ad8868aad6d4c7a40be6cd7..549d2c0add8239b313f0654eecb4c1d124b879c0 100644 (file)
@@ -2695,7 +2695,8 @@ add_partial_subprogram (struct partial_die_info *pdi,
              baseaddr = ANOFFSET (objfile->section_offsets,
                                   SECT_OFF_TEXT (objfile));
              addrmap_set_empty (objfile->psymtabs_addrmap,
-                                pdi->lowpc, pdi->highpc - 1,
+                                pdi->lowpc + baseaddr,
+                                pdi->highpc - 1 + baseaddr,
                                 cu->per_cu->psymtab);
            }
           if (!pdi->is_declaration)