diff options
author | Pedro Alves <palves@redhat.com> | 2016-11-17 23:15:34 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-11-23 01:18:42 +0000 |
commit | 9986ba08876f86f7d36d230afc11b60a34287da8 (patch) | |
tree | 82f237a64b31b497014b8e95ac651e5482e1996b /gdb/gdbserver | |
parent | 4eefa7bcf286b879f61b9e1ec1c97230f5345104 (diff) | |
download | gdb-9986ba08876f86f7d36d230afc11b60a34287da8.zip gdb-9986ba08876f86f7d36d230afc11b60a34287da8.tar.gz gdb-9986ba08876f86f7d36d230afc11b60a34287da8.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/gdbserver/event-loop.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 6 | ||||
-rw-r--r-- | gdb/gdbserver/mem-break.c | 6 |
4 files changed, 13 insertions, 8 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c023c8b..8d57fa7 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,12 @@ 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> + * linux-low.c (check_zombie_leaders): Use debug_printf for debug output. * notif.c (handle_notif_ack, notif_event_enque): Likewise. diff --git a/gdb/gdbserver/event-loop.c b/gdb/gdbserver/event-loop.c index 89a4493..155b126 100644 --- a/gdb/gdbserver/event-loop.c +++ b/gdb/gdbserver/event-loop.c @@ -411,7 +411,7 @@ handle_file_event (gdb_fildes_t event_file_desc) 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)); file_ptr->error = 1; } diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 4bf3955..e3e372c 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -4460,10 +4460,10 @@ linux_resume_one_lwp_throw (struct lwp_info *lwp, if (fast_tp_collecting == 0) { if (step == 0) - fprintf (stderr, "BAD - reinserting but not stepping.\n"); + warning ("BAD - reinserting but not stepping."); if (lwp->suspended) - fprintf (stderr, "BAD - reinserting and suspended(%d).\n", - lwp->suspended); + warning ("BAD - reinserting and suspended(%d).", + lwp->suspended); } } diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c index bee9c30..147b4b6 100644 --- a/gdb/gdbserver/mem-break.c +++ b/gdb/gdbserver/mem-break.c @@ -1284,8 +1284,7 @@ add_breakpoint_condition (struct gdb_breakpoint *bp, char **condition) if (cond == NULL) { - fprintf (stderr, "Condition evaluation failed. " - "Assuming unconditional.\n"); + warning ("Condition evaluation failed. Assuming unconditional."); return 0; } @@ -1384,8 +1383,7 @@ add_breakpoint_commands (struct gdb_breakpoint *bp, char **command, if (cmd == NULL) { - fprintf (stderr, "Command evaluation failed. " - "Disabling.\n"); + warning ("Command evaluation failed. Disabling."); return 0; } |