This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Use generic_print_address for address
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Fri, 11 Feb 2005 15:31:54 -0800
- Subject: PATCH: Use generic_print_address for address
Diassembler should use generic_print_address to print out address.
Otherwise, it doesn't work with 64bit address.
H.J.
----
2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
* dis-buf.c (perror_memory): Use generic_print_address to
print out address.
--- opcodes/dis-buf.c.vma 2003-11-17 12:30:30.000000000 -0800
+++ opcodes/dis-buf.c 2005-02-11 15:28:58.787914148 -0800
@@ -56,10 +56,13 @@ perror_memory (status, memaddr, info)
/* Can't happen. */
info->fprintf_func (info->stream, _("Unknown error %d\n"), status);
else
- /* Actually, address between memaddr and memaddr + len was
- out of bounds. */
- info->fprintf_func (info->stream,
- _("Address 0x%x is out of bounds.\n"), memaddr);
+ {
+ /* Actually, address between memaddr and memaddr + len was
+ out of bounds. */
+ info->fprintf_func (info->stream, _("Address 0x"));
+ generic_print_address (memaddr, info);
+ info->fprintf_func (info->stream, _(" is out of bounds.\n"));
+ }
}
/* This could be in a separate file, to save miniscule amounts of space