From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31868 invoked by alias); 3 Jan 2008 21:41:14 -0000 Received: (qmail 31860 invoked by uid 22791); 3 Jan 2008 21:41:13 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 03 Jan 2008 21:36:57 +0000 Received: from kahikatea.snap.net.nz (176.63.255.123.dynamic.snap.net.nz [123.255.63.176]) by viper.snap.net.nz (Postfix) with ESMTP id B2B693D950B for ; Fri, 4 Jan 2008 10:36:54 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 4B4F28FC6D; Fri, 4 Jan 2008 10:36:40 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18301.21862.895127.476459@kahikatea.snap.net.nz> Date: Thu, 03 Jan 2008 21:41:00 -0000 To: gdb@sourceware.org Subject: Breakpoint menus with overloaded constructors X-Mailer: VM 7.19 under Emacs 23.0.50.22 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: 2008-01/txt/msg00014.txt.bz2 Breakpoint menus don't seem to work with overloaded constructors. Is that a known problem? They can be found with completion, however: (gdb) b 'A::A( A::A(double) A::A(int) (gdb) b 'A::A( GNU gdb 6.7.50.20080103-cvs Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) b A::A [0] cancel [1] all ?HERE ?HERE > 1 Note: breakpoint -1 (disabled) also set at pc 0x0. Breakpoint 1 at 0x0 Note: breakpoints -1 (disabled) and 1 also set at pc 0x0. Breakpoint 2 at 0x0 warning: Multiple breakpoints were set. Use the "delete" command to delete unwanted breakpoints. (gdb) info break Num Type Disp Enb Address What 1 breakpoint keep y 0x00000000 2 breakpoint keep y 0x00000000 (gdb) -- Nick http://www.inet.net.nz/~nickrob /* -*- compile-command: "cc -g -o overgdb overgdb.cc -lstdc++"; -*- */ #include using namespace std; class A { public: A (int a) { cout << "int" << endl; } A (double b) { cout << "double" << endl; } }; main () { A *a, *b; a = new A (6); b = new A (10.11); }