This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Dump base address and output <End of list>
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 5 Jan 2005 09:23:50 -0800
- Subject: PATCH: Dump base address and output <End of list>
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;