diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:46:15 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (patch) | |
tree | 641a6a86240919fe4ba9219fbbbe15bc6331c22d /gdb/target-debug.h | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.zip binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz binutils-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.bz2 |
Unify gdb printf functions
Now that filtered and unfiltered output can be treated identically, we
can unify the printf family of functions. This is done under the name
"gdb_printf". Most of this patch was written by script.
Diffstat (limited to 'gdb/target-debug.h')
-rw-r--r-- | gdb/target-debug.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h index ee494d0..c2b1db1 100644 --- a/gdb/target-debug.h +++ b/gdb/target-debug.h @@ -206,8 +206,8 @@ target_debug_print_signals (gdb::array_view<const unsigned char> sigs) for (size_t i = 0; i < sigs.size (); i++) if (sigs[i] != 0) { - fprintf_unfiltered (gdb_stdlog, " %s", - gdb_signal_to_name ((enum gdb_signal) i)); + gdb_printf (gdb_stdlog, " %s", + gdb_signal_to_name ((enum gdb_signal) i)); } gdb_puts (" }", gdb_stdlog); } @@ -215,7 +215,7 @@ target_debug_print_signals (gdb::array_view<const unsigned char> sigs) static void target_debug_print_size_t (size_t size) { - fprintf_unfiltered (gdb_stdlog, "%s", pulongest (size)); + gdb_printf (gdb_stdlog, "%s", pulongest (size)); } static void @@ -225,8 +225,8 @@ target_debug_print_const_gdb_byte_vector_r (const gdb::byte_vector &vector) for (size_t i = 0; i < vector.size (); i++) { - fprintf_unfiltered (gdb_stdlog, " %s", - phex_nz (vector[i], 1)); + gdb_printf (gdb_stdlog, " %s", + phex_nz (vector[i], 1)); } gdb_puts (" }", gdb_stdlog); } |