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/rs6000-aix-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/rs6000-aix-nat.c')
-rw-r--r-- | gdb/rs6000-aix-nat.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/rs6000-aix-nat.c b/gdb/rs6000-aix-nat.c index 5cf1214..8563aea 100644 --- a/gdb/rs6000-aix-nat.c +++ b/gdb/rs6000-aix-nat.c @@ -210,9 +210,9 @@ fetch_register (struct regcache *regcache, int regno) else if (nr < 0) { if (regno >= gdbarch_num_regs (gdbarch)) - fprintf_unfiltered (gdb_stderr, - "gdb error: register no %d not implemented.\n", - regno); + gdb_printf (gdb_stderr, + "gdb error: register no %d not implemented.\n", + regno); return; } @@ -272,9 +272,9 @@ store_register (struct regcache *regcache, int regno) else if (nr < 0) { if (regno >= gdbarch_num_regs (gdbarch)) - fprintf_unfiltered (gdb_stderr, - "gdb error: register no %d not implemented.\n", - regno); + gdb_printf (gdb_stderr, + "gdb error: register no %d not implemented.\n", + regno); } /* Fixed-point registers. */ @@ -519,9 +519,9 @@ rs6000_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus, if (pid == -1) { - fprintf_unfiltered (gdb_stderr, - _("Child process unexpectedly missing: %s.\n"), - safe_strerror (save_errno)); + gdb_printf (gdb_stderr, + _("Child process unexpectedly missing: %s.\n"), + safe_strerror (save_errno)); /* Claim it exited with unknown signal. */ ourstatus->set_signalled (GDB_SIGNAL_UNKNOWN); |