This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Move GDB to C++ ?
Daniel Jacobowitz wrote:
On Fri, Jul 11, 2008 at 05:08:39PM +0100, Dave Korn wrote:
I think the real issue is that GDB has to be able to debug itself and GDB
is currently weak in a few important areas of C++ support. I think that
should be resolved before we consider porting the code.
I don't think it's a big issue. The biggest problems have been
resolved; additional problems are mostly in bits of C++ that we would
probably avoid anyway.
In fact it can just be a criterion for what features in C++ to allow
that they must be easily debuggable.
If a move to C++ for GDB and possibly other similar projects is made,
and a well established subset prescribed, it may well be worth having
a switch built into g++ to enforce this subset (similar to the use of
-gnatg in Ada, although that does not go as far as it might in enforcing
the use of the allowed Ada subset for the compiler itself.