diff options
author | H.J. Lu <hjl@lucon.org> | 2005-02-14 15:47:19 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2005-02-14 15:47:19 +0000 |
commit | c1b1e3103ff04c3694902bf348c41c92a92f115c (patch) | |
tree | b498fd2a576a221c74e5090e09b43af940be9e99 /opcodes/dis-buf.c | |
parent | 80616ffb0d2ee20706a712a10906c5549734f352 (diff) | |
download | gdb-c1b1e3103ff04c3694902bf348c41c92a92f115c.tar.gz |
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/dis-buf.c')
-rw-r--r-- | opcodes/dis-buf.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/opcodes/dis-buf.c b/opcodes/dis-buf.c index 83fbfbd7d21..257cfed14a6 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 |