diff options
author | Ali Anwar <alianwar@sourceware.org> | 2012-10-22 13:35:43 +0000 |
---|---|---|
committer | Ali Anwar <alianwar@sourceware.org> | 2012-10-22 13:35:43 +0000 |
commit | 08af7a403c41a1622d08134141dd9d7a2405da3e (patch) | |
tree | d7cc6d3bbc07cc1879e9500f7c00aa2f69de095e /gdb/gdbarch.c | |
parent | 0e86e20e046ab38f95fb405f91a7b3a1ec7d7aba (diff) | |
download | gdb-08af7a403c41a1622d08134141dd9d7a2405da3e.zip gdb-08af7a403c41a1622d08134141dd9d7a2405da3e.tar.gz gdb-08af7a403c41a1622d08134141dd9d7a2405da3e.tar.bz2 |
Ali Anwar <ali_anwar@codesourcery.com>
* gdbarch.sh (function_list): Use 'pstring' when printing a
variable which could return NULL.
* gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index e4fe267..c920682 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -1315,16 +1315,16 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) host_address_to_string (gdbarch->stabs_argument_has_addr)); fprintf_unfiltered (file, "gdbarch_dump: stap_gdb_register_prefix = %s\n", - gdbarch->stap_gdb_register_prefix); + pstring (gdbarch->stap_gdb_register_prefix)); fprintf_unfiltered (file, "gdbarch_dump: stap_gdb_register_suffix = %s\n", - gdbarch->stap_gdb_register_suffix); + pstring (gdbarch->stap_gdb_register_suffix)); fprintf_unfiltered (file, "gdbarch_dump: stap_integer_prefix = %s\n", - gdbarch->stap_integer_prefix); + pstring (gdbarch->stap_integer_prefix)); fprintf_unfiltered (file, "gdbarch_dump: stap_integer_suffix = %s\n", - gdbarch->stap_integer_suffix); + pstring (gdbarch->stap_integer_suffix)); fprintf_unfiltered (file, "gdbarch_dump: gdbarch_stap_is_single_operand_p() = %d\n", gdbarch_stap_is_single_operand_p (gdbarch)); @@ -1339,16 +1339,16 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) host_address_to_string (gdbarch->stap_parse_special_token)); fprintf_unfiltered (file, "gdbarch_dump: stap_register_indirection_prefix = %s\n", - gdbarch->stap_register_indirection_prefix); + pstring (gdbarch->stap_register_indirection_prefix)); fprintf_unfiltered (file, "gdbarch_dump: stap_register_indirection_suffix = %s\n", - gdbarch->stap_register_indirection_suffix); + pstring (gdbarch->stap_register_indirection_suffix)); fprintf_unfiltered (file, "gdbarch_dump: stap_register_prefix = %s\n", - gdbarch->stap_register_prefix); + pstring (gdbarch->stap_register_prefix)); fprintf_unfiltered (file, "gdbarch_dump: stap_register_suffix = %s\n", - gdbarch->stap_register_suffix); + pstring (gdbarch->stap_register_suffix)); fprintf_unfiltered (file, "gdbarch_dump: gdbarch_static_transform_name_p() = %d\n", gdbarch_static_transform_name_p (gdbarch)); |