Word size confusion in display_debug_ranges() in binutils-2.18/binutils/dwarf.c

Nick Clifton nickc@redhat.com
Fri Mar 27 14:26:00 GMT 2009


Hi Jay,

> This patch seems to have changed the behaviour of
> display_debug_ranges(), such that the range start and end values it
> prints no longer include the base address. The relevant lines from the
> patch are:
> 
> -             printf ("    %8.8lx %8.8lx %8.8lx",
> -                     offset, begin + base_address, end + base_address);
> 
> +             print_dwarf_vma (begin, pointer_size);
> +             print_dwarf_vma (end, pointer_size);

Oops, so it does.  Fixed with the attached patch.

Cheers
   Nick

binutils/ChangeLog
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'.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dwarf.c.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20090327/d389a798/attachment.ksh>


More information about the Binutils mailing list