aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-03-27 14:27:02 +0000
committerNick Clifton <nickc@redhat.com>2009-03-27 14:27:02 +0000
commit4a149252f16212640bf5c7ce6299e82f6a422dcd (patch)
tree9048becb924b804e59ca69d5895e9e2fd4a400e5 /binutils
parent20ec62945daf5484b089fee6140145e366600f99 (diff)
downloadgdb-4a149252f16212640bf5c7ce6299e82f6a422dcd.zip
gdb-4a149252f16212640bf5c7ce6299e82f6a422dcd.tar.gz
gdb-4a149252f16212640bf5c7ce6299e82f6a422dcd.tar.bz2
* dwarf.c (display_debug_ranges): Add the base address to the
displayed values for 'Begin' and 'End'.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2338abb..8265915 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-27 Nick Clifton <nickc@redhat.com>
+
+ * dwarf.c (display_debug_ranges): Add the base address to the
+ displayed values for 'Begin' and 'End'.
+
2009-03-25 Ryan Mansfield <rmansfield@qnx.com>
* readelf.c (process_file_header): Don't report a corrupt string
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index d5dbb78..72efe3e 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -3576,17 +3576,19 @@ display_debug_ranges (struct dwarf_section *section,
break;
}
- print_dwarf_vma (begin, pointer_size);
- print_dwarf_vma (end, pointer_size);
-
/* Check base address specifiers. */
if (begin == (dwarf_vma) -1 && end != (dwarf_vma) -1)
{
base_address = end;
+ print_dwarf_vma (begin, pointer_size);
+ print_dwarf_vma (end, pointer_size);
printf ("(base address)\n");
continue;
}
+ print_dwarf_vma (begin + base_address, pointer_size);
+ print_dwarf_vma (end + base_address, pointer_size);
+
if (begin == end)
fputs (_("(start == end)"), stdout);
else if (begin > end)