This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Remove wrapper.[ch]
- From: Tom Tromey <tromey at redhat dot com>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: "gdb-patches\ at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Mon, 09 Jan 2012 09:22:13 -0700
- Subject: Re: [RFA] Remove wrapper.[ch]
- References: <4F076E33.1030404@redhat.com>
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:
Keith> libgdb is history. The introduction of TRY_CATCH is now the standard
Keith> way to do these sorts of tasks. There seems little point to support
Keith> yet another ancient/nearly unused API to gdb's internals.
I agree. This patch is ok.
You might want to look at removing gdb_rc entirely. There are only a
few more uses; and it seems pointless to me to have a second generic,
high-level way to deal with error cases; exceptions are enough for this.
(I don't discount the use of having error returns rather than exceptions
for specific APIs.) You could then perhaps remove gdb.h as well.
Tom