]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gdbserver/ChangeLog
Downgrade fatal to warning in linux_async
authorGary Benson <gbenson@redhat.com>
Wed, 6 Aug 2014 10:57:14 +0000 (11:57 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 28 Aug 2014 14:06:46 +0000 (15:06 +0100)
commitaa96c426c674844a90e8fbea2cd184462191b498
tree6f06335efd35b552b587b128f01a4ecf556ef724
parentf7160e97410b4b65330e5f23d82e8879c908de50
Downgrade fatal to warning in linux_async

This commit downgrades a fatal error to a warning in linux_async.
linux_async is called from two different places in gdbserver:

 Via target_async from handle_accept_event.  The argument
   is always zero, so the warning will never be printed here.

 Via start_non_stop from handle_general_set.  This prints
   its own error message to stderr on failure, which will
   be preceded by the warning if it is emitted.

gdb/gdbserver/ChangeLog:

* linux-low.c (linux_async): Replace fatal with warning.
Tidy up and return.
(linux_start_non_stop): Return -1 if linux_async failed.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c