aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-02-14 15:47:19 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-02-14 15:47:19 +0000
commitd60988980f0a8282b0125afe9dbad1ddfdda4c9e (patch)
tree39e18af3834358a63ceb9ec1d9776455bc37aefa /opcodes
parent66bf4b3a03e67c9c38fb7525c6ce25c4f870206a (diff)
downloadgdb-d60988980f0a8282b0125afe9dbad1ddfdda4c9e.zip
gdb-d60988980f0a8282b0125afe9dbad1ddfdda4c9e.tar.gz
gdb-d60988980f0a8282b0125afe9dbad1ddfdda4c9e.tar.bz2
2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
* dis-buf.c (perror_memory): Use sprintf_vma to print out address.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/dis-buf.c13
2 files changed, 14 insertions, 4 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 983c47e..8fe1b30 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * dis-buf.c (perror_memory): Use sprintf_vma to print out
+ address.
+
2005-02-11 Nick Clifton <nickc@redhat.com>
* iq2000-asm.c: Regenerate.
diff --git a/opcodes/dis-buf.c b/opcodes/dis-buf.c
index 83fbfbd..257cfed 100644
--- a/opcodes/dis-buf.c
+++ b/opcodes/dis-buf.c
@@ -56,10 +56,15 @@ 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);
+ {
+ char buf[30];
+
+ /* Actually, address between memaddr and memaddr + len was
+ out of bounds. */
+ sprintf_vma (buf, memaddr);
+ info->fprintf_func (info->stream,
+ _("Address 0x%s is out of bounds.\n"), buf);
+ }
}
/* This could be in a separate file, to save miniscule amounts of space