* dwarf.c (display_debug_loc): Correct test for base address
entry when 64-bit host dumping 32-bit object.
This commit is contained in:
parent
ccdb9c9f36
commit
fefffff8d2
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-01-29 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* dwarf.c (display_debug_loc): Correct test for base address
|
||||
entry when 64-bit host dumping 32-bit object.
|
||||
|
||||
2008-01-29 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* MAINTAINERS: Remove myself as ix86 maintainer. Add for SPU.
|
||||
|
|
|
@ -2618,6 +2618,7 @@ display_debug_loc (struct dwarf_section *section, void *file)
|
|||
{
|
||||
unsigned long begin;
|
||||
unsigned long end;
|
||||
unsigned long minus_one;
|
||||
unsigned short length;
|
||||
unsigned long offset;
|
||||
unsigned int pointer_size;
|
||||
|
@ -2678,7 +2679,10 @@ display_debug_loc (struct dwarf_section *section, void *file)
|
|||
}
|
||||
|
||||
/* Check base address specifiers. */
|
||||
if (begin == -1UL && end != -1UL)
|
||||
minus_one = -1;
|
||||
if (pointer_size < sizeof (minus_one))
|
||||
minus_one = (1L << (pointer_size * 8)) - 1;
|
||||
if (begin == minus_one && end != minus_one)
|
||||
{
|
||||
base_address = end;
|
||||
printf (_(" %8.8lx %8.8lx %8.8lx (base address)\n"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue