mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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
This commit is contained in:
@ -508,25 +508,26 @@ mips_show_dr (const char *func, CORE_ADDR addr,
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
puts_unfiltered (func);
|
fputs_unfiltered (func, gdb_stdlog);
|
||||||
if (addr || len)
|
if (addr || len)
|
||||||
printf_unfiltered (" (addr=%s, len=%d, type=%s)",
|
fprintf_unfiltered (gdb_stdlog,
|
||||||
paddress (target_gdbarch (), addr), len,
|
" (addr=%s, len=%d, type=%s)",
|
||||||
type == hw_write ? "data-write"
|
paddress (target_gdbarch (), addr), len,
|
||||||
: (type == hw_read ? "data-read"
|
type == hw_write ? "data-write"
|
||||||
: (type == hw_access ? "data-read/write"
|
: (type == hw_read ? "data-read"
|
||||||
: (type == hw_execute ? "instruction-execute"
|
: (type == hw_access ? "data-read/write"
|
||||||
: "??unknown??"))));
|
: (type == hw_execute ? "instruction-execute"
|
||||||
puts_unfiltered (":\n");
|
: "??unknown??"))));
|
||||||
|
fputs_unfiltered (":\n", gdb_stdlog);
|
||||||
|
|
||||||
for (i = 0; i < MAX_DEBUG_REGISTER; i++)
|
for (i = 0; i < MAX_DEBUG_REGISTER; i++)
|
||||||
printf_unfiltered ("\tDR%d: lo=%s, hi=%s\n", i,
|
fprintf_unfiltered (gdb_stdlog, "\tDR%d: lo=%s, hi=%s\n", i,
|
||||||
paddress (target_gdbarch (),
|
paddress (target_gdbarch (),
|
||||||
mips_linux_watch_get_watchlo (&watch_mirror,
|
mips_linux_watch_get_watchlo (&watch_mirror,
|
||||||
i)),
|
i)),
|
||||||
paddress (target_gdbarch (),
|
paddress (target_gdbarch (),
|
||||||
mips_linux_watch_get_watchhi (&watch_mirror,
|
mips_linux_watch_get_watchhi (&watch_mirror,
|
||||||
i)));
|
i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Target to_can_use_hw_breakpoint implementation. Return 1 if we can
|
/* Target to_can_use_hw_breakpoint implementation. Return 1 if we can
|
||||||
|
Reference in New Issue
Block a user