This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/6] Remove fatal from gdbserver
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 6 Aug 2014 16:58:02 +0100
- Subject: [PATCH 0/6] Remove fatal from gdbserver
- Authentication-results: sourceware.org; auth=none
Hi all,
After the recent discussions regarding moving fatal to common/errors.h
I decided to have a look at how fatal is used in gdbserver. It turns
out most uses report programmer errors, and the few remaining uses can
be replaced with some other error handling function.
This series removes fatal from gdbserver and replaces all calls. The
first patch is the biggest and the most mechanical: most things in
here are I think fairly straightforward. The next four patches cover
trickier cases, and the final patch removes the function itself.
Aside from the benefit of a simpler error system (ie less classes of
error to decide between) the removal of fatal simplifies factoring
shared code out of GDB and gdbserver and into the common directories
(common, nat and target).
Built and regtested on RHEL 6.5 x86_64.
Is this ok to commit?
Thanks,
Gary
--
http://gbenson.net/