From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13779 invoked by alias); 18 Apr 2012 16:50:49 -0000 Received: (qmail 13728 invoked by uid 22791); 18 Apr 2012 16:50:45 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Apr 2012 16:50:28 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3IGo6pB006625 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Apr 2012 12:50:06 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q3IGo3To005896; Wed, 18 Apr 2012 12:50:04 -0400 Message-ID: <4F8EF0BB.4070405@redhat.com> Date: Wed, 18 Apr 2012 16:50:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Joel Sherrill CC: Joel Brobecker , Jan Kratochvil , Pedro Alves , Tom Tromey , "gdb@sourceware.org" Subject: Re: Will therefore GDB utilize C++ or not? References: <4F832D5B.9030308@redhat.com> <20120409190519.GA524@host2.jankratochvil.net> <4F833D29.4050102@redhat.com> <20120416065456.GA30097@host2.jankratochvil.net> <4F8ECB72.70708@redhat.com> <20120418151553.GA16768@host2.jankratochvil.net> <4F8EDD7B.2010602@redhat.com> <20120418155354.GA17912@host2.jankratochvil.net> <20120418160644.GC25623@adacore.com> <20120418161315.GC18303@host2.jankratochvil.net> <20120418162255.GD25623@adacore.com> <4F8EEC55.7080008@oarcorp.com> In-Reply-To: <4F8EEC55.7080008@oarcorp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-04/txt/msg00125.txt.bz2 On 04/18/2012 05:31 PM, Joel Sherrill wrote: > On 04/18/2012 11:22 AM, Joel Brobecker wrote: >>> What can change? C++ usage is already decreasing, most of the new >>> development is in Java. If C++ is already not suitable it will never >>> be. >> Many things can change. Just one example: The constraints placed >> on GDB/GDBserver could change and lead to a more positive terrain >> for C++ adoption. Maybe, one day, the conditions will be right. >> Just not today. >> > Wading in late .. but is the gdbserver intended to run > on an embedded RTOS with just threads? No, it assumes some more unixy-ish OS what spawns processes, though it scales down to Linux with uclibc, bionic, and other userspaces (along with supporting a few other OSs, like Lynx, Windows and Windows CE.) It could be made to bolt into such embedded targets, but nobody has ever done that, AFAIK. > > If so, then as a broad over generalization, it would be a > shame to push any C++ run-time requirements on a > target that is likely resource constrained. Plus some of > the smaller gcc targets do not support C++. > > C++ for tools that will always run on a development host > is a technical programming benefits decision. > > But please remember that host does not universally > equal target. What may be right for one side may not > be for the other. > -- Pedro Alves