aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2009-04-17 15:44:28 +0000
committerPierre Muller <muller@sourceware.org>2009-04-17 15:44:28 +0000
commita74ce742ff4d9d7f8c207852d8b51234f661b532 (patch)
tree6c7e1c941f1cad94dab90297e625ab24b76d98f0 /gdb/symmisc.c
parentd9118602518511148f81961bbdd632439db10a19 (diff)
downloadgdb-a74ce742ff4d9d7f8c207852d8b51234f661b532.zip
gdb-a74ce742ff4d9d7f8c207852d8b51234f661b532.tar.gz
gdb-a74ce742ff4d9d7f8c207852d8b51234f661b532.tar.bz2
ARI fix: Do not use %p, replace by call to host_address_to_string
for host pointers. * darwin-nat.c (darwin_xfer_partial): Apply change. * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto. * gnu-nat.h (proc_debug): Ditto. * symmisc.c (maintenance_info_symtabs): Ditto. (maintenance_info_psymtabs): Ditto. * windows-nat.c (handle_load_dll): Ditto. (handle_unload_dll, info_w32_command, handle_exception): Ditto. * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 02021e5..67baef7 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -948,22 +948,24 @@ maintenance_info_symtabs (char *regexp, int from_tty)
{
printf_filtered ("{ objfile %s ", objfile->name);
wrap_here (" ");
- printf_filtered ("((struct objfile *) %p)\n", objfile);
+ printf_filtered ("((struct objfile *) %s)\n",
+ host_address_to_string (objfile));
printed_objfile_start = 1;
}
printf_filtered (" { symtab %s ", symtab->filename);
wrap_here (" ");
- printf_filtered ("((struct symtab *) %p)\n", symtab);
+ printf_filtered ("((struct symtab *) %s)\n",
+ host_address_to_string (symtab));
printf_filtered (" dirname %s\n",
symtab->dirname ? symtab->dirname : "(null)");
printf_filtered (" fullname %s\n",
symtab->fullname ? symtab->fullname : "(null)");
- printf_filtered (" blockvector ((struct blockvector *) %p)%s\n",
- symtab->blockvector,
+ printf_filtered (" blockvector ((struct blockvector *) %s)%s\n",
+ host_address_to_string (symtab->blockvector),
symtab->primary ? " (primary)" : "");
- printf_filtered (" linetable ((struct linetable *) %p)\n",
- symtab->linetable);
+ printf_filtered (" linetable ((struct linetable *) %s)\n",
+ host_address_to_string (symtab->linetable));
printf_filtered (" debugformat %s\n", symtab->debugformat);
printf_filtered (" }\n");
}
@@ -1003,13 +1005,16 @@ maintenance_info_psymtabs (char *regexp, int from_tty)
{
printf_filtered ("{ objfile %s ", objfile->name);
wrap_here (" ");
- printf_filtered ("((struct objfile *) %p)\n", objfile);
+ printf_filtered ("((struct objfile *) %s)\n",
+ host_address_to_string (objfile));
printed_objfile_start = 1;
}
printf_filtered (" { psymtab %s ", psymtab->filename);
wrap_here (" ");
- printf_filtered ("((struct partial_symtab *) %p)\n", psymtab);
+ printf_filtered ("((struct partial_symtab *) %s)\n",
+ host_address_to_string (psymtab));
+
printf_filtered (" readin %s\n",
psymtab->readin ? "yes" : "no");
printf_filtered (" fullname %s\n",
@@ -1051,8 +1056,9 @@ maintenance_info_psymtabs (char *regexp, int from_tty)
/* Note the string concatenation there --- no comma. */
printf_filtered (" psymtab %s "
- "((struct partial_symtab *) %p)\n",
- dep->filename, dep);
+ "((struct partial_symtab *) %s)\n",
+ dep->filename,
+ host_address_to_string (dep));
}
printf_filtered (" }\n");
}