This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Will therefore GDB utilize C++ or not?
- From: Daniel Jacobowitz <daniel dot jacobowitz at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Joel Brobecker <brobecker at adacore dot com>, Pedro Alves <palves at redhat dot com>, Jan Kratochvil <jan dot kratochvil at redhat dot com>, gdb at sourceware dot org
- Date: Sat, 19 May 2012 11:21:27 -0400
- Subject: Re: Will therefore GDB utilize C++ or not?
- References: <20120330161403.GA17891@host2.jankratochvil.net> <87aa2rjkb8.fsf@fleche.redhat.com> <4F832D5B.9030308@redhat.com> <87ehqhfenc.fsf@fleche.redhat.com> <20120518215558.GR29339@adacore.com> <87aa14ewyq.fsf@fleche.redhat.com>
On Fri, May 18, 2012 at 10:17 PM, Tom Tromey <tromey@redhat.com> wrote:
>
> >>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
>
> Joel> For GDBserver, however, which is often cross-compiled to bare
> Joel> systems, I feel that getting a C++ compiler could be even more
> Joel> challenging that on those exotic but otherwise relatively rich
> Joel> platforms.
>
> Ok.
>
> I think in that case we must drop this idea.
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.
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.
--
Thanks,
Daniel