public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Send some error output to gdb_stderr Date: Tue, 25 Jan 2022 22:25:55 +0000 (GMT) [thread overview] Message-ID: <20220125222555.C9D43385DC27@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1475b18b772bc06830b221edfdb0259ac2db6773 commit 1475b18b772bc06830b221edfdb0259ac2db6773 Author: Tom Tromey <tom@tromey.com> Date: Wed Dec 29 12:50:25 2021 -0700 Send some error output to gdb_stderr This changes some code to send some error messages to gdb_stderr rather than gdb_stdout. Diff: --- gdb/breakpoint.c | 7 ++++--- gdb/event-top.c | 2 +- gdb/inf-loop.c | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 1812bfe42f9..975e7cd9cfe 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 51c6ee803cd..28a1924f9dc 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 f1298cf3192..2002c4b8966 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; } }
reply other threads:[~2022-01-25 22:25 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220125222555.C9D43385DC27@sourceware.org \ --to=tromey@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).