diff options
author | Doug Evans <dje@google.com> | 2010-03-02 17:19:58 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-03-02 17:19:58 +0000 |
commit | 01637564babaecf321df2df1bde199f7ff70b35f (patch) | |
tree | c87c1deab687fdccb3076517329df2b6561a03d4 /gdb/dwarf2read.c | |
parent | 0b6ae52290bac3fee2f4ce2e435b70b52c932d69 (diff) | |
download | gdb-01637564babaecf321df2df1bde199f7ff70b35f.zip gdb-01637564babaecf321df2df1bde199f7ff70b35f.tar.gz gdb-01637564babaecf321df2df1bde199f7ff70b35f.tar.bz2 |
* dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
lowpc,highpc args to addrmap_set_empty.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |