From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32733 invoked by alias); 16 Jun 2010 16:37:44 -0000 Received: (qmail 32594 invoked by uid 22791); 16 Jun 2010 16:37:43 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 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; Wed, 16 Jun 2010 16:37:37 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 9013D2BAC1B; Wed, 16 Jun 2010 12:37:35 -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 gt4jU2xiKGNH; Wed, 16 Jun 2010 12:37:35 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 3BDD02BABF6; Wed, 16 Jun 2010 12:37:35 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 2AD55F58FA; Wed, 16 Jun 2010 09:37:32 -0700 (PDT) Date: Wed, 16 Jun 2010 16:37:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: xingxing pan , gdb@sourceware.org Subject: Re: Why isn't GDB designed and implemented by using Object-Oriented methodology? Message-ID: <20100616163732.GC2700@adacore.com> References: <20100616134202.GA32490@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100616134202.GA32490@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-06/txt/msg00056.txt.bz2 > > When meeting so many structs and function pointer in the source codes, > > dose anyone have the thought to redesign and implement GDB using > > Object-Oriented methodology? > > See the last discussion: > Move GDB to C++ ? > http://sourceware.org/ml/gdb/2008-07/msg00077.html > http://sourceware.org/ml/gdb/2008-08/msg00004.html One can develop software using "Object Oriented *methodology*" without using a language that implements classes. An object is, at its simplest, data and methods. If you are using the term "methodology" to actually mean "language", then indeed, as Jan points out, this is not a new discussion. Despite my strong reservations about moving away from C, I have no doubt in my mind that we will eventually be moving GDB development to C++. But in the meantime, some parts of GDB already have an OO aspect to them. -- Joel