This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMITTED PATCH 0/6] Remove fatal from gdbserver
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Pedro Alves <palves at redhat dot com>
- Date: Thu, 28 Aug 2014 15:16:23 +0100
- Subject: [COMMITTED PATCH 0/6] Remove fatal from gdbserver
- Authentication-results: sourceware.org; auth=none
- References: <1407340688-13721-1-git-send-email-gbenson at redhat dot com>
Gary Benson wrote:
> 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).
Thanks for reviewing this Pedro. I've made the changes you suggested
and pushed this.
Cheers,
Gary
--
http://gbenson.net/