Send some error output to gdb_stderr

This changes some code to send some error messages to gdb_stderr
rather than gdb_stdout.
This commit is contained in:
Tom Tromey
2021-12-29 12:50:25 -07:00
parent b6437be687
commit 1475b18b77
3 changed files with 6 additions and 5 deletions

View File

@@ -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;
}