This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Will therefore GDB utilize C++ or not?
> For the record, I stand by my earlier messages in this thread about
> code sharing with gdbserver; I think there is plenty of room for a C
> gdbserver and a C++ one, and the times when C++ doesn't work on your
> target are definitely times when you prefer the simplest possible and
> most bulletproof gdbserver.
I wouldn't mind something like this either. I don't have much of
an idea of what optional features could be better implemented in C++,
though, given the fact that GDBserver is a very small piece of code
as it is... But that's easy to discuss some other day if someone
wants to take that project further.
> What I'd really love to see, in C or C++, would be unit testing;
> having worked in a unit test intensive environment for the past year,
> I think it's a bit nuts that anyone *doesn't*. It seems to me that
> there are better tools for this in C++ than in C, but I have
> definitely not done a serious investigation of the options.
I agree. For one thing, it would allow us to test the observers
without have to go through debugging GDB with GDB and make inferior
function calls.
As an aside, I used to work on an Air Traffic Control system,
and did a lot of Unit Testing and Deep Unit Testing. I know
from this experience that this is time and effort well invested,
and I tend to use them for my own projects as well.
--
Joel