ARI fix: remove "%p".
authorPierre Muller <muller@sourceware.org>
Tue, 21 Apr 2009 11:38:38 +0000 (11:38 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 21 Apr 2009 11:38:38 +0000 (11:38 +0000)
* ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
(ia64_sigtramp_frame_this_id): Ditto.
(ia64_libunwind_frame_this_id): Ditto.
(ia64_libunwind_sigtramp_frame_this_id): Ditto.
* symmisc.c (maintenance_info_psymtabs): Ditto.

gdb/ChangeLog
gdb/ia64-tdep.c
gdb/symmisc.c

index 7252cdb1ad652a20da2cea81a57092d15d8c4a82..2cf98d116418f65913afd26851df0c4d44172391 100644 (file)
@@ -1,3 +1,12 @@
+2009-04-21  Pierre Muller  <muller.u-strasbg.fr>
+
+       ARI fix: remove "%p".
+       * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
+       (ia64_sigtramp_frame_this_id): Ditto.
+       (ia64_libunwind_frame_this_id): Ditto.
+       (ia64_libunwind_sigtramp_frame_this_id): Ditto.
+       * symmisc.c (maintenance_info_psymtabs): Ditto.
+
 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
 
        * configure.ac (--with-relocated-sources): New.
index 6adfae2efe13b260ce63ca30c11fc5e5ff2a235e..ef3606158e859cef1ab88e076190013837c0a352 100644 (file)
@@ -1717,10 +1717,11 @@ ia64_frame_this_id (struct frame_info *this_frame, void **this_cache,
     (*this_id) = frame_id_build_special (cache->base, cache->pc, cache->bsp);
   if (gdbarch_debug >= 1)
     fprintf_unfiltered (gdb_stdlog,
-                       "regular frame id: code 0x%s, stack 0x%s, special 0x%s, this_frame %p\n",
+                       "regular frame id: code 0x%s, stack 0x%s, special 0x%s, this_frame %s\n",
                        paddr_nz (this_id->code_addr), 
                        paddr_nz (this_id->stack_addr), 
-                       paddr_nz (cache->bsp), this_frame);
+                       paddr_nz (cache->bsp),
+                       host_address_to_string (this_frame));
 }
 
 static struct value *
@@ -2072,10 +2073,11 @@ ia64_sigtramp_frame_this_id (struct frame_info *this_frame,
                                        cache->bsp);
   if (gdbarch_debug >= 1)
     fprintf_unfiltered (gdb_stdlog,
-                       "sigtramp frame id: code 0x%s, stack 0x%s, special 0x%s, this_frame %p\n",
+                       "sigtramp frame id: code 0x%s, stack 0x%s, special 0x%s, this_frame %s\n",
                        paddr_nz (this_id->code_addr), 
                        paddr_nz (this_id->stack_addr), 
-                       paddr_nz (cache->bsp), this_frame);
+                       paddr_nz (cache->bsp),
+                       host_address_to_string (this_frame));
 }
 
 static struct value *
@@ -2733,9 +2735,10 @@ ia64_libunwind_frame_this_id (struct frame_info *this_frame, void **this_cache,
 
   if (gdbarch_debug >= 1)
     fprintf_unfiltered (gdb_stdlog,
-                       "libunwind frame id: code 0x%s, stack 0x%s, special 0x%s, this_frame %p\n",
+                       "libunwind frame id: code 0x%s, stack 0x%s, special 0x%s, this_frame %s\n",
                        paddr_nz (id.code_addr), paddr_nz (id.stack_addr), 
-                       paddr_nz (bsp), this_frame);
+                       paddr_nz (bsp),
+                       host_address_to_string (this_frame));
 }
 
 static struct value *
@@ -2858,9 +2861,10 @@ ia64_libunwind_sigtramp_frame_this_id (struct frame_info *this_frame,
 
   if (gdbarch_debug >= 1)
     fprintf_unfiltered (gdb_stdlog,
-                       "libunwind sigtramp frame id: code 0x%s, stack 0x%s, special 0x%s, this_frame %p\n",
+                       "libunwind sigtramp frame id: code 0x%s, stack 0x%s, special 0x%s, this_frame %s\n",
                        paddr_nz (id.code_addr), paddr_nz (id.stack_addr), 
-                       paddr_nz (bsp), this_frame);
+                       paddr_nz (bsp),
+                       host_address_to_string (this_frame));
 }
 
 static struct value *
index 67baef772178fa8a4156cf971c4dd1eafafd6e3a..2e25c896df3d29ecd6d750a6b426b9d049a1aeb0 100644 (file)
@@ -1027,8 +1027,8 @@ maintenance_info_psymtabs (char *regexp, int from_tty)
              printf_filtered ("    globals ");
              if (psymtab->n_global_syms)
                {
-                 printf_filtered ("(* (struct partial_symbol **) %p @ %d)\n",
-                                  (psymtab->objfile->global_psymbols.list
+                 printf_filtered ("(* (struct partial_symbol **) %s @ %d)\n",
+                                  host_address_to_string (psymtab->objfile->global_psymbols.list
                                    + psymtab->globals_offset),
                                   psymtab->n_global_syms);
                }
@@ -1037,8 +1037,8 @@ maintenance_info_psymtabs (char *regexp, int from_tty)
              printf_filtered ("    statics ");
              if (psymtab->n_static_syms)
                {
-                 printf_filtered ("(* (struct partial_symbol **) %p @ %d)\n",
-                                  (psymtab->objfile->static_psymbols.list
+                 printf_filtered ("(* (struct partial_symbol **) %s @ %d)\n",
+                                  host_address_to_string (psymtab->objfile->static_psymbols.list
                                    + psymtab->statics_offset),
                                   psymtab->n_static_syms);
                }