Re: [PATCH 00/36] Support building GDB as a C++ program

Patrick Palka
2015-02-17T23:19:47Z

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.