From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13222 invoked by alias); 7 Apr 2012 01:04:10 -0000 Received: (qmail 13208 invoked by uid 22791); 7 Apr 2012 01:04:09 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 07 Apr 2012 01:03:56 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 97CAA1C6132; Fri, 6 Apr 2012 21:03:55 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hna-nEDi5Khk; Fri, 6 Apr 2012 21:03:55 -0400 (EDT) Received: from [192.168.77.102] (cpe-69-204-224-43.nyc.res.rr.com [69.204.224.43]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 20ACD1C6062; Fri, 6 Apr 2012 21:03:55 -0400 (EDT) Message-ID: <4F7F9275.3000009@adacore.com> Date: Sat, 07 Apr 2012 01:04:00 -0000 From: Robert Dewar User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: John Gilmore CC: Joel Brobecker , gdb@sourceware.org Subject: Re: Will therefore GDB utilize C++? Not. References: <20120330161403.GA17891@host2.jankratochvil.net> <87aa2rjkb8.fsf@fleche.redhat.com> <201204042155.q34LtJNB013402@glazunov.sibelius.xs4all.nl> <4F7D8603.90801@redhat.com> <201204060034.q360Yo0m007419@new.toad.com> <4F7E4849.1090104@netspace.net.au> <20120406131619.GI27438@adacore.com> <201204062332.q36NW90m006330@new.toad.com> In-Reply-To: <201204062332.q36NW90m006330@new.toad.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-04/txt/msg00057.txt.bz2 On 4/6/2012 7:32 PM, John Gilmore wrote: >> And yet, that's exactly what we are doing: >> - unit elaboration; >> - gdbarch/language dispatching >> - exception handling >> - use of unions to emulate polymorphism; > > Writing modular programs is a good idea even if we don't do it in C++. > I have heard it claimed that many techniques of modular programming > were even invented before C++ existed - though that may be doubted. Doubted by whom? Certainly not by anyone with any awareness of the history of programming languages. The notions of modular programming existed LONG LONG before C++ was invented and are represented in many programming languages! Next someone will be thinking that C++ invented object oriented programming :-) > PPS: What is "unit elaboration" and what does that have to do with > GDB? All I can find from a quick web search is that it has something > to do with Ada. Perhaps other languages don't do it -- or have > another name for it. "Linking"? Are you sure we shouldn't rewrite > bits of GDB in Ada instead of C++? :-)