diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-24 22:08:18 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-12-29 10:47:48 -0700 |
commit | 25c25f90bfe0836d7595e35548d30007c75cb0e2 (patch) | |
tree | 281bf2be9af0ef70756811f13e800cc6e2b8e47b /gdb/mips-linux-nat.c | |
parent | 728ab7b6439addf398c00b06667bb4058fd66f70 (diff) | |
download | gdb-25c25f90bfe0836d7595e35548d30007c75cb0e2.zip gdb-25c25f90bfe0836d7595e35548d30007c75cb0e2.tar.gz gdb-25c25f90bfe0836d7595e35548d30007c75cb0e2.tar.bz2 |
Send debugging data to gdb_stdlog in mips-linux-nat.c
This changes mips-linux-nat.c to send some logging output to
gdb_stdlog, rather than stdout. This is part of PR gdb/7233.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=7233
Diffstat (limited to 'gdb/mips-linux-nat.c')
-rw-r--r-- | gdb/mips-linux-nat.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index 1088a7d..cbf4b59 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -508,25 +508,26 @@ mips_show_dr (const char *func, CORE_ADDR addr, { int i; - puts_unfiltered (func); + fputs_unfiltered (func, gdb_stdlog); if (addr || len) - printf_unfiltered (" (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??")))); - puts_unfiltered (":\n"); + 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??")))); + fputs_unfiltered (":\n", gdb_stdlog); for (i = 0; i < MAX_DEBUG_REGISTER; i++) - printf_unfiltered ("\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))); + 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))); } /* Target to_can_use_hw_breakpoint implementation. Return 1 if we can |