From 01637564babaecf321df2df1bde199f7ff70b35f Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 2 Mar 2010 17:19:58 +0000 Subject: * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to lowpc,highpc args to addrmap_set_empty. --- gdb/dwarf2read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/dwarf2read.c') diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index a05c946..549d2c0 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) -- cgit v1.1