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/mips-linux-nat.c | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.zip gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz gdb-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/mips-linux-nat.c')
-rw-r--r-- | gdb/mips-linux-nat.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index 3756f98..feaf464 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -510,24 +510,24 @@ mips_show_dr (const char *func, CORE_ADDR addr, gdb_puts (func, gdb_stdlog); if (addr || len) - fprintf_unfiltered (gdb_stdlog, - " (addr=%s, len=%d, type=%s)", - paddress (target_gdbarch (), addr), len, - type == hw_write ? "data-write" - : (type == hw_read ? "data-read" - : (type == hw_access ? "data-read/write" - : (type == hw_execute ? "instruction-execute" - : "??unknown??")))); + gdb_printf (gdb_stdlog, + " (addr=%s, len=%d, type=%s)", + paddress (target_gdbarch (), addr), len, + type == hw_write ? "data-write" + : (type == hw_read ? "data-read" + : (type == hw_access ? "data-read/write" + : (type == hw_execute ? "instruction-execute" + : "??unknown??")))); gdb_puts (":\n", gdb_stdlog); for (i = 0; i < MAX_DEBUG_REGISTER; i++) - fprintf_unfiltered (gdb_stdlog, "\tDR%d: lo=%s, hi=%s\n", i, - paddress (target_gdbarch (), - mips_linux_watch_get_watchlo (&watch_mirror, - i)), - paddress (target_gdbarch (), - mips_linux_watch_get_watchhi (&watch_mirror, - i))); + gdb_printf (gdb_stdlog, "\tDR%d: lo=%s, hi=%s\n", i, + paddress (target_gdbarch (), + mips_linux_watch_get_watchlo (&watch_mirror, + i)), + paddress (target_gdbarch (), + mips_linux_watch_get_watchhi (&watch_mirror, + i))); } /* Target to_can_use_hw_breakpoint implementation. Return 1 if we can |