[PATCH 0/6] Remove fatal from gdbserver

Gary Benson gbenson@redhat.com
Wed Aug 6 15:58:00 GMT 2014


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/



More information about the Gdb-patches mailing list