From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4873 invoked by alias); 15 Jan 2002 18:14:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4833 invoked from network); 15 Jan 2002 18:14:03 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 15 Jan 2002 18:14:03 -0000 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16QY63-00028f-00 for ; Tue, 15 Jan 2002 13:14:07 -0500 Date: Tue, 15 Jan 2002 10:14:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: GDB C++ support Message-ID: <20020115131407.A8210@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <200201151748.LAA16445@duracef.shout.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200201151748.LAA16445@duracef.shout.net> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-01/txt/msg00162.txt.bz2 On Tue, Jan 15, 2002 at 11:48:34AM -0600, Michael Elizabeth Chastain wrote: > eli> You don't need to apologize about not having the information I asked > eli> for. But there's no need to be harsh, either. > > Yeah, you're right, I got up grouchy this morning. I apologize for that. > > Co-incidentally, I'm making test runs with stock 5.1 right now. > Here's an excerpt from gdb.log: > > # gdb 5.1, gcc 3.0.2, -gdwarf-2, gdb.c++/method.exp > > (gdb) break main^M > Breakpoint 1 at 0x8048549: file /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.c++/method.cc, line 66.^M > (gdb) run ^M > Starting program: /berman/migchain/build/native/gdb-5.1/gdb/testsuite/gdb.c++/method ^M > ^M > Breakpoint 1, main () at /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.c++/method.cc:66^M > 66 k = 10;^M > (gdb) break A::foo^M > Breakpoint 2 at 0x80484a6: file /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.c++/method.cc, line 38.^M > (gdb) PASS: gdb.c++/method.exp: set breakpoint on A::foo > continue^M > Continuing.^M > ^M > Breakpoint 2, A::foo(int) (this=0xbffff0e0, arg=13) at /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.c++/method.cc:38^M > 38 x += arg;^M > (gdb) FAIL: gdb.c++/method.exp: continuing and breaking in A::foo > > So you can see that 'break A::foo' works and gdb takes the breakpoint. > I don't know what that "FAIL" is about (that is a different issue). Probably the fact that the name of the function is 'A::foo(int)'. I fixed this in the testsuite on the trunk (or Jason did; I don't recall). -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer