gdbserver: Use warning for warnings
authorPedro Alves <palves@redhat.com>
Thu, 17 Nov 2016 23:15:34 +0000 (23:15 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 23 Nov 2016 01:18:42 +0000 (01:18 +0000)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/event-loop.c
gdb/gdbserver/linux-low.c
gdb/gdbserver/mem-break.c

index c023c8b6f8b4c9de78c907c54f626bf3bcaa15bd..8d57fa7eaaa312c5b435108cd486fc11d7ac7838 100644 (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>
 
        * linux-low.c (check_zombie_leaders): Use debug_printf for debug
index 89a4493b20a11f17c4eaecb7cfedd59882dea819..155b1262c4667ec7ebfa68322a5190a491f57250 100644 (file)
@@ -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;
            }
index 4bf3955653512f067b119cce2943a1efe59ca25b..e3e372cb9c51ade793a3ffd1915e879fd1a1da42 100644 (file)
@@ -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);
            }
        }
 
index bee9c30bfc94327886d899df9ae9a9bb58cf94d9..147b4b62f739681da1ee694e291437b962a87e1f 100644 (file)
@@ -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;
     }