aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-10-26 18:21:38 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-10-26 18:21:38 +0000
commit86ba104287c2df8fd675dc2791273037f2c153e7 (patch)
treee30ef655da18fe9fe296d240989c56fbdb51c0a8 /gdb/gdbarch.c
parentc34fd85260102e2a68a248e13a4eb99a3dc8548b (diff)
downloadgdb-86ba104287c2df8fd675dc2791273037f2c153e7.zip
gdb-86ba104287c2df8fd675dc2791273037f2c153e7.tar.gz
gdb-86ba104287c2df8fd675dc2791273037f2c153e7.tar.bz2
Fix 'sprintf' of potential NULL pointer in 'maint print arch'
gdb/ * gdbarch.sh (function_list): Use 'pstring' when printing 'gcore_bfd_target'. * gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index ea48fa7..1ada504 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -953,7 +953,7 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
gdbarch_gcore_bfd_target_p (gdbarch));
fprintf_unfiltered (file,
"gdbarch_dump: gcore_bfd_target = %s\n",
- gdbarch->gcore_bfd_target);
+ pstring (gdbarch->gcore_bfd_target));
fprintf_unfiltered (file,
"gdbarch_dump: gen_return_address = <%s>\n",
host_address_to_string (gdbarch->gen_return_address));