This changes some code to send some error messages to gdb_stderr
rather than gdb_stdout.
/* 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;
}
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
break;
default:
- printf_unfiltered (_("Event type not recognized.\n"));
+ fprintf_unfiltered (gdb_stderr, _("Event type not recognized.\n"));
break;
}
}