* dwarf.c (display_debug_ranges): Add the base address to the

displayed values for 'Begin' and 'End'.
This commit is contained in:
Nick Clifton 2009-03-27 14:27:02 +00:00
parent 20ec62945d
commit 4a149252f1
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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)