From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31398 invoked by alias); 12 Dec 2005 03:15:24 -0000 Received: (qmail 31389 invoked by uid 22791); 12 Dec 2005 03:15:23 -0000 X-Spam-Check-By: sourceware.org Received: from ip127.bb146.pacific.net.hk (HELO mailhub.stlglobal.com) (202.64.146.127) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 12 Dec 2005 03:15:22 +0000 Received: from rccomp.stlglobal.com ([192.168.100.200]) by mailhub.stlglobal.com with esmtp (Exim 4.50) id 1Ele8s-0005w3-Dl for gdb@sources.redhat.com; Mon, 12 Dec 2005 11:14:22 +0800 Message-ID: <439CEB4C.5050205@tausq.org> Date: Mon, 12 Dec 2005 03:15:00 -0000 From: Randolph Chung User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: gdb and c++ method names Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00140.txt.bz2 Is this expected behavior? GNU gdb 6.4.50.20051209-cvs Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "hppa2.0w-hp-hpux11.11"... (gdb) b StringTest::testFunction Breakpoint 1 at 0x3644: file ../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc, line 39. (gdb) b main Breakpoint 2 at 0x398c: file ../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc, line 62. (gdb) run Starting program: /home/tausq/src/build/gdb/testsuite/gdb.cp/bs15503 Error in re-setting breakpoint 1: the class StringTest does not have any method named testFunction Hint: try 'StringTest::testFunction or 'StringTest::testFunction (Note leading single quote.) Breakpoint 2, main () at ../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc:62 62 StringTest ts; (gdb) b 'StringTest:: StringTest::StringTest() StringTest::testFunction() StringTest::runTest() (gdb) b 'StringTest::testFunction()' Note: breakpoint 1 (disabled) also set at pc 0x3644. Breakpoint 3 at 0x3644: file ../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc, line 39. (gdb) b StringTest::testFunction() Note: breakpoints 1 (disabled) and 3 also set at pc 0x3644. Breakpoint 4 at 0x3644: file ../../../gdb/gdb/testsuite/gdb.cp/bs15503.cc, line 39. (gdb) b StringTest::testFunction the class StringTest does not have any method named testFunction Hint: try 'StringTest::testFunction or 'StringTest::testFunction (Note leading single quote.) (gdb) randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/