From: Doug Evans Date: Tue, 2 Mar 2010 17:19:58 +0000 (+0000) Subject: * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01637564babaecf321df2df1bde199f7ff70b35f;p=binutils-gdb.git * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to lowpc,highpc args to addrmap_set_empty. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d21e9e8eaca..4140f2c336b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-02 Doug Evans + + * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to + lowpc,highpc args to addrmap_set_empty. + 2010-03-02 H.J. Lu * amd64-tdep.c (amd64_byte_names): New. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index a05c946c28e..549d2c0add8 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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)