PATCH: Dump base address and output <End of list>
H. J. Lu
hjl@lucon.org
Wed Jan 5 17:24:00 GMT 2005
I will check in this patch shortly to dump base address and output
<End of list> for the last location list in a CU.
H.J.
----
2005-01-05 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (display_debug_loc): Display base address
specifiers. Always output <End of list>.
--- binutils/readelf.c.base 2005-01-05 09:08:03.657161942 -0800
+++ binutils/readelf.c 2005-01-05 09:13:17.394231685 -0800
@@ -9550,6 +9550,8 @@ display_debug_loc (Elf_Internal_Shdr *se
if (begin == -1UL && end != -1UL)
{
base_address = end;
+ printf (" %8.8lx %8.8lx %8.8lx (base address)\n",
+ offset, begin, end);
continue;
}
@@ -9577,9 +9579,7 @@ display_debug_loc (Elf_Internal_Shdr *se
start += length;
}
- if (j < debug_information [i].num_loc_offsets -1)
- printf (_(" <End of list>"));
- printf ("\n");
+ fputs (_(" <End of list>\n"), stdout);
}
}
return 1;
More information about the Binutils
mailing list