From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26690 invoked by alias); 13 Nov 2007 19:15:42 -0000 Received: (qmail 26673 invoked by uid 22791); 13 Nov 2007 19:15:41 -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; Tue, 13 Nov 2007 19:15:38 +0000 Received: from kahikatea.snap.net.nz (107.31.255.123.static.snap.net.nz [123.255.31.107]) by viper.snap.net.nz (Postfix) with ESMTP id DEF3A3D9E86 for ; Wed, 14 Nov 2007 08:15:30 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 569548FC6D; Wed, 14 Nov 2007 08:15:29 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18233.63439.953202.586908@kahikatea.snap.net.nz> Date: Tue, 13 Nov 2007 19:15:00 -0000 To: gdb@sources.redhat.com Subject: Multiple breakpoint locations X-Mailer: VM 7.19 under Emacs 23.0.50.46 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: 2007-11/txt/msg00098.txt.bz2 The new code for breakpoints with multiple locations looks very good and addresses a common complaint about GDB. I have a couple of points and apologise if they have already been discussed. Folowing the example in the manual: Num Type Disp Enb Address What 1 breakpoint keep y stop only if i==1 breakpoint already hit 1 time 1.1 y 0x080486a2 in void foo() at t.cc:8 1.2 y 0x080486ca in void foo() at t.cc:8 1) I can enable/disable 1.1 and 1.2 but not delete them: (gdb) dis 1.1 Num Type Disp Enb Address What 1 breakpoint keep y stop only if i==1 breakpoint already hit 1 time 1.1 n 0x080486a2 in void foo() at t.cc:8 1.2 y 0x080486ca in void foo() at t.cc:8 (gdb) d 1.1 warning: bad breakpoint number at or near '1.1' 2) I can enable/disable 1 and this appears to enable/disable all the locations. Perhap this could be documented in the manual. 3) I created this breakpoint by specifying the line but if I do: b foo() or any variant I can think of, I just get a pending breakpoint as GDB doesn't recognise the location. Can such locations be specified on the command line by name? -- Nick http://www.inet.net.nz/~nickrob