From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3140 invoked by alias); 16 Jun 2010 13:44:23 -0000 Received: (qmail 3009 invoked by uid 22791); 16 Jun 2010 13:44:21 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,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, 16 Jun 2010 13:44:11 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5GDi7US016933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 16 Jun 2010 09:44:07 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5GDi43d015945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 16 Jun 2010 09:44:06 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o5GDg3eJ032561; Wed, 16 Jun 2010 15:44:03 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o5GDg20R032560; Wed, 16 Jun 2010 15:42:02 +0200 Date: Wed, 16 Jun 2010 13:44:00 -0000 From: Jan Kratochvil To: xingxing pan Cc: gdb@sourceware.org Subject: Re: Why isn't GDB designed and implemented by using Object-Oriented methodology? Message-ID: <20100616134202.GA32490@host0.dyn.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) 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: 2010-06/txt/msg00055.txt.bz2 On Wed, 16 Jun 2010 13:54:16 +0200, xingxing pan wrote: > 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 There is an ongoing work to make it at least possible: http://sourceware.org/gdb/wiki/ArcherBranchManagement -> archer-ratmice-compile-Wc++-compat This idea is not new. Thanks, Jan