diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-29 12:50:25 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-25 15:22:49 -0700 |
commit | 1475b18b772bc06830b221edfdb0259ac2db6773 (patch) | |
tree | 486cb7519251ddf9e6af9fc81b9b53658c7da816 /gdb | |
parent | b6437be6879672d2e0da2c8c7e742f126457b9df (diff) | |
download | gdb-1475b18b772bc06830b221edfdb0259ac2db6773.zip gdb-1475b18b772bc06830b221edfdb0259ac2db6773.tar.gz gdb-1475b18b772bc06830b221edfdb0259ac2db6773.tar.bz2 |
Send some error output to gdb_stderr
This changes some code to send some error messages to gdb_stderr
rather than gdb_stdout.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/breakpoint.c | 7 | ||||
-rw-r--r-- | gdb/event-top.c | 2 | ||||
-rw-r--r-- | gdb/inf-loop.c | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 1812bfe..975e7cd 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -13063,9 +13063,10 @@ update_breakpoint_locations (struct breakpoint *b, /* Ranged breakpoints have only one start location and one end location. */ b->enable_state = bp_disabled; - printf_unfiltered (_("Could not reset ranged breakpoint %d: " - "multiple locations found\n"), - b->number); + fprintf_unfiltered (gdb_stderr, + _("Could not reset ranged breakpoint %d: " + "multiple locations found\n"), + b->number); return; } diff --git a/gdb/event-top.c b/gdb/event-top.c index 51c6ee8..28a1924 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -494,7 +494,7 @@ stdin_event_handler (int error, gdb_client_data client_data) if (main_ui == ui) { /* If stdin died, we may as well kill gdb. */ - printf_unfiltered (_("error detected on stdin\n")); + fprintf_unfiltered (gdb_stderr, _("error detected on stdin\n")); quit_command ((char *) 0, 0); } else diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c index f1298cf..2002c4b 100644 --- a/gdb/inf-loop.c +++ b/gdb/inf-loop.c @@ -85,7 +85,7 @@ inferior_event_handler (enum inferior_event_type event_type) break; default: - printf_unfiltered (_("Event type not recognized.\n")); + fprintf_unfiltered (gdb_stderr, _("Event type not recognized.\n")); break; } } |