public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "H. J. Lu" <hjl@lucon.org>
To: binutils@sources.redhat.com
Subject: PATCH: Use generic_print_address for address
Date: Sat, 12 Feb 2005 10:46:00 -0000	[thread overview]
Message-ID: <20050211233154.GA10866@lucon.org> (raw)

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

             reply	other threads:[~2005-02-11 23:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-12 10:46 H. J. Lu [this message]
2005-02-13  2:06 ` Andreas Schwab
     [not found]   ` <20050211234902.GA11119@lucon.org>
     [not found]     ` <jesm42mz2z.fsf@sykes.suse.de>
2005-02-13 12:44       ` H. J. Lu
2005-02-14 14:58         ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050211233154.GA10866@lucon.org \
    --to=hjl@lucon.org \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).