* jit.c (jit_event_handler): Use paddress to print target addresses.
authorDoug Evans <dje@google.com>
Fri, 21 Aug 2009 19:07:01 +0000 (19:07 +0000)
committerDoug Evans <dje@google.com>
Fri, 21 Aug 2009 19:07:01 +0000 (19:07 +0000)
Wrap printf string in _().

gdb/ChangeLog
gdb/jit.c

index 4b0a623..8d57ddb 100644 (file)
@@ -1,3 +1,9 @@
+2009-08-21  Ken Werner <ken@linux.vnet.ibm.com>
+           Doug Evans  <dje@google.com>
+
+       * jit.c (jit_event_handler): Use paddress to print target addresses.
+       Wrap printf string in _().
+
 2009-08-21  Doug Evans  <dje@google.com>
 
        * jit.c (jit_read_descriptor): New arg gdbarch, all callers updated.
index ffc6735..a362098 100644 (file)
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -436,8 +436,8 @@ jit_event_handler (struct gdbarch *gdbarch)
     case JIT_UNREGISTER:
       objf = jit_find_objf_with_entry_addr (entry_addr);
       if (objf == NULL)
-        printf_unfiltered ("Unable to find JITed code entry at address: %p\n",
-                           (void *) entry_addr);
+       printf_unfiltered (_("Unable to find JITed code entry at address: %s\n"),
+                          paddress (gdbarch, entry_addr));
       else
         jit_unregister_code (objf);