From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8393 invoked by alias); 17 Mar 2004 00:29:09 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8371 invoked from network); 17 Mar 2004 00:29:09 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 17 Mar 2004 00:29:09 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id 25DA9C0EF; Tue, 16 Mar 2004 16:29:06 -0800 (PST) To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com, drow@mvista.com Subject: Re: [patch/rfc] mention C++ support in NEWS References: <6654-Wed11Feb2004213143+0200-eliz@elta.co.il> From: David Carlton Date: Fri, 19 Mar 2004 00:09:00 -0000 In-Reply-To: <6654-Wed11Feb2004213143+0200-eliz@elta.co.il> (Eli Zaretskii's message of "Wed, 11 Feb 2004 21:31:44 +0200") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-03/txt/msg00378.txt.bz2 On Wed, 11 Feb 2004 21:31:44 +0200, "Eli Zaretskii" said: >> From: David Carlton >> Date: Wed, 11 Feb 2004 10:15:27 -0800 >> +* C++ nested types and namespaces >> + >> +GDB's support for nested types and namespaces in C++ has been >> +improved. We recommend that you use the DWARF 2 debugging format to >> +get the full benefit from this; this is the default for recent >> +versions of GCC on most platforms. >> + > IMHO, this text is okay, but perhaps it will sound much more useful if > you add some examples of situations where GDB previously didn't work, > and now does. That's a good point. How about: GDB's support for nested types and namespaces in C++ has been improved, especially if you use the DWARF 2 debugging format. (This is the default for recent versions of GCC on most platforms.) Specifically, if you have a class "Inner" defined within a class or namespace "Outer", then GDB realizes that the class's name is "Outer::Inner", not simply "Inner". This should greatly reduce the frequency of complaints about not finding RTTI symbols. In addition, if you are stopped at inside of a function defined within a namespace, GDB modifies its name lookup accordingly. I'm still not entirely thrilled with it, especially that last sentence; I don't want to go into _too_ many details, but I'm not sure I've found the right balance. I'm also trying to think of what else has changed - the patches have been long enough that I would think I'd be able to point to more features, but I guess it really is the case that fixing names of types and teaching GDB about namespaces simply required a lot of infrastructure changes... David Carlton carlton@kealia.com From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8393 invoked by alias); 17 Mar 2004 00:29:09 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8371 invoked from network); 17 Mar 2004 00:29:09 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 17 Mar 2004 00:29:09 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id 25DA9C0EF; Tue, 16 Mar 2004 16:29:06 -0800 (PST) To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com, drow@mvista.com Subject: Re: [patch/rfc] mention C++ support in NEWS References: <6654-Wed11Feb2004213143+0200-eliz@elta.co.il> From: David Carlton Date: Wed, 17 Mar 2004 00:29:00 -0000 In-Reply-To: <6654-Wed11Feb2004213143+0200-eliz@elta.co.il> (Eli Zaretskii's message of "Wed, 11 Feb 2004 21:31:44 +0200") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-03.o/txt/msg00378.txt Message-ID: <20040317002900.5Rw9JXVfzSMfgeEy4_2oDQ4nQy2-fQPZh4Pd23LIVBY@z> On Wed, 11 Feb 2004 21:31:44 +0200, "Eli Zaretskii" said: >> From: David Carlton >> Date: Wed, 11 Feb 2004 10:15:27 -0800 >> +* C++ nested types and namespaces >> + >> +GDB's support for nested types and namespaces in C++ has been >> +improved. We recommend that you use the DWARF 2 debugging format to >> +get the full benefit from this; this is the default for recent >> +versions of GCC on most platforms. >> + > IMHO, this text is okay, but perhaps it will sound much more useful if > you add some examples of situations where GDB previously didn't work, > and now does. That's a good point. How about: GDB's support for nested types and namespaces in C++ has been improved, especially if you use the DWARF 2 debugging format. (This is the default for recent versions of GCC on most platforms.) Specifically, if you have a class "Inner" defined within a class or namespace "Outer", then GDB realizes that the class's name is "Outer::Inner", not simply "Inner". This should greatly reduce the frequency of complaints about not finding RTTI symbols. In addition, if you are stopped at inside of a function defined within a namespace, GDB modifies its name lookup accordingly. I'm still not entirely thrilled with it, especially that last sentence; I don't want to go into _too_ many details, but I'm not sure I've found the right balance. I'm also trying to think of what else has changed - the patches have been long enough that I would think I'd be able to point to more features, but I guess it really is the case that fixing names of types and teaching GDB about namespaces simply required a lot of infrastructure changes... David Carlton carlton@kealia.com