Convert fatal to error in remote_prepare
authorGary Benson <gbenson@redhat.com>
Wed, 6 Aug 2014 12:47:55 +0000 (13:47 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 28 Aug 2014 14:06:47 +0000 (15:06 +0100)
commit50278d599da5f7536a1243a887c2a5fa12e099c1
treef81cd4ad386423f44a89e86eef56a7a964ef711e
parentaa96c426c674844a90e8fbea2cd184462191b498
Convert fatal to error in remote_prepare

This commit converts a call to fatal in remote_prepare with a call to
error.  remote_prepare is called precisely once, from main, at a point
where jumping to toplevel will call exit (1), so error and fatal are
functionally equivalent at this point.  Note that remote_prepare calls
perror_with_name (which calls error) so callers of remote_prepare must
already handle the fact that it may exit via longjmp.

gdb/gdbserver/ChangeLog:

* remote-utils.c (remote_prepare): Replace fatal with error.
gdb/gdbserver/ChangeLog
gdb/gdbserver/remote-utils.c