From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7957 invoked by alias); 19 May 2012 15:21:44 -0000 Received: (qmail 7945 invoked by uid 22791); 19 May 2012 15:21:43 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ee0-f41.google.com (HELO mail-ee0-f41.google.com) (74.125.83.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 May 2012 15:21:29 +0000 Received: by eekb47 with SMTP id b47so1088749eek.0 for ; Sat, 19 May 2012 08:21:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.28.66 with SMTP id f42mr2752860eea.63.1337440887625; Sat, 19 May 2012 08:21:27 -0700 (PDT) Received: by 10.14.100.201 with HTTP; Sat, 19 May 2012 08:21:27 -0700 (PDT) In-Reply-To: <87aa14ewyq.fsf@fleche.redhat.com> 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> Date: Sat, 19 May 2012 15:21:00 -0000 Message-ID: Subject: Re: Will therefore GDB utilize C++ or not? From: Daniel Jacobowitz To: Tom Tromey Cc: Joel Brobecker , Pedro Alves , Jan Kratochvil , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00098.txt.bz2 On Fri, May 18, 2012 at 10:17 PM, Tom Tromey wrote: > > >>>>> "Joel" == Joel Brobecker 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