From 8f05cde5d3c5911f92f2fcb60c461cd8a719387f Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 14 Feb 2003 19:05:52 +0000 Subject: [PATCH] * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base. --- gdb/ChangeLog | 4 ++++ gdb/dwarf2read.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 77cdd65fd6b..23acac20227 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-02-14 Daniel Jacobowitz + + * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base. + 2003-02-14 Andrew Cagney * main.c (tui_version): Delete variable. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index dbd6460ca78..3b067d5464d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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 -- 2.30.2