OSDN Git Service

* ARI fix: "%p" rule.
authormuller <muller>
Tue, 6 Oct 2009 15:32:17 +0000 (15:32 +0000)
committermuller <muller>
Tue, 6 Oct 2009 15:32:17 +0000 (15:32 +0000)
target.c (debug_to_thread_architecture): Replace %p by %s using
host_address_to_string function.

gdb/ChangeLog
gdb/target.c

index 8e7bf5f..36887fa 100644 (file)
@@ -1,3 +1,9 @@
+2009-10-06  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * ARI fix: "%p" rule.
+       target.c (debug_to_thread_architecture): Replace %p by %s using
+       host_address_to_string function.
+
 2009-10-06  Tristan Gingold  <gingold@adacore.com>
 
        * darwin-nat.c: Add __TEXT __info_plist content.
index e5d14fd..1ba8b35 100644 (file)
@@ -3367,8 +3367,8 @@ debug_to_thread_architecture (struct target_ops *ops, ptid_t ptid)
 
   retval = debug_target.to_thread_architecture (ops, ptid);
 
-  fprintf_unfiltered (gdb_stdlog, "target_thread_architecture (%s) = %p [%s]\n",
-                     target_pid_to_str (ptid), retval,
+  fprintf_unfiltered (gdb_stdlog, "target_thread_architecture (%s) = %s [%s]\n",
+                     target_pid_to_str (ptid), host_address_to_string (retval),
                      gdbarch_bfd_arch_info (retval)->printable_name);
   return retval;
 }