gdbserver: Use warning for warnings

gdb/gdbserver/ChangeLog:
2016-11-23  Pedro Alves  <palves@redhat.com>

	* event-loop.c (handle_file_event): Use warning.
	* linux-low.c (linux_resume_one_lwp_throw): Use warning.
	* mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
	Use warning.
This commit is contained in:
Pedro Alves 2016-11-17 23:15:34 +00:00
parent 4eefa7bcf2
commit 9986ba0887
4 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2016-11-23 Pedro Alves <palves@redhat.com>
* event-loop.c (handle_file_event): Use warning.
* linux-low.c (linux_resume_one_lwp_throw): Use warning.
* mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
Use warning.
2016-11-23 Pedro Alves <palves@redhat.com> 2016-11-23 Pedro Alves <palves@redhat.com>
* linux-low.c (check_zombie_leaders): Use debug_printf for debug * linux-low.c (check_zombie_leaders): Use debug_printf for debug

View File

@ -411,7 +411,7 @@ handle_file_event (gdb_fildes_t event_file_desc)
if (file_ptr->ready_mask & GDB_EXCEPTION) if (file_ptr->ready_mask & GDB_EXCEPTION)
{ {
fprintf (stderr, "Exception condition detected on fd %s\n", warning ("Exception condition detected on fd %s",
pfildes (file_ptr->fd)); pfildes (file_ptr->fd));
file_ptr->error = 1; file_ptr->error = 1;
} }

View File

@ -4460,10 +4460,10 @@ linux_resume_one_lwp_throw (struct lwp_info *lwp,
if (fast_tp_collecting == 0) if (fast_tp_collecting == 0)
{ {
if (step == 0) if (step == 0)
fprintf (stderr, "BAD - reinserting but not stepping.\n"); warning ("BAD - reinserting but not stepping.");
if (lwp->suspended) if (lwp->suspended)
fprintf (stderr, "BAD - reinserting and suspended(%d).\n", warning ("BAD - reinserting and suspended(%d).",
lwp->suspended); lwp->suspended);
} }
} }

View File

@ -1284,8 +1284,7 @@ add_breakpoint_condition (struct gdb_breakpoint *bp, char **condition)
if (cond == NULL) if (cond == NULL)
{ {
fprintf (stderr, "Condition evaluation failed. " warning ("Condition evaluation failed. Assuming unconditional.");
"Assuming unconditional.\n");
return 0; return 0;
} }
@ -1384,8 +1383,7 @@ add_breakpoint_commands (struct gdb_breakpoint *bp, char **command,
if (cmd == NULL) if (cmd == NULL)
{ {
fprintf (stderr, "Command evaluation failed. " warning ("Command evaluation failed. Disabling.");
"Disabling.\n");
return 0; return 0;
} }