This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 00/36] Support building GDB as a C++ program
- From: Patrick Palka <patrick at parcs dot ath dot cx>
- To: Pedro Alves <palves at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 17 Feb 2015 18:19:23 -0500
- Subject: Re: [PATCH 00/36] Support building GDB as a C++ program
- Authentication-results: sourceware.org; auth=none
- References: <1423524046-20605-1-git-send-email-palves at redhat dot com>
On Mon, Feb 9, 2015 at 6:20 PM, Pedro Alves <palves@redhat.com> wrote:
> I'm glad to announce that the global maintainers have reached
> consensus on converting GDB to use C++ as implementation language.
>
> See the project page here: https://sourceware.org/gdb/wiki/cxx-conversion
My opinion is not worth much but I must admit that I am not a fan of
migrating to C++. To keep it short -- on the whole, despite C's
disadvantages and C++'s advantages, I personally find C to be much
more pleasing to work with. I hope it is not too presumptuous to
objectively state that it is easier to follow the unassailable KISS
principle with C.
On another note, as you all may already know, C++ support in GDB is
not great. A migration to C++ will in the medium term make it harder
to debug GDB with GDB. I wonder if this is an issue worth
considering.