From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11450 invoked by alias); 17 Nov 2007 14:14:05 -0000 Received: (qmail 11442 invoked by uid 22791); 17 Nov 2007 14:14:04 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 17 Nov 2007 14:14:02 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ItOQM-0002l5-N6 for gdb@sources.redhat.com; Sat, 17 Nov 2007 14:13:30 +0000 Received: from 77.246.241.246 ([77.246.241.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Nov 2007 14:13:30 +0000 Received: from ghost by 77.246.241.246 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Nov 2007 14:13:30 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Multiple breakpoint locations Date: Sat, 17 Nov 2007 14:14:00 -0000 Message-ID: References: <18233.63439.953202.586908@kahikatea.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.4 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/msg00168.txt.bz2 Eli Zaretskii wrote: >> From: Nick Roberts >> Date: Wed, 14 Nov 2007 08:15:27 +1300 >> >> >> 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. > > Btw, while working on Nick's proposals, I found myself confused wrt > the connection, if any, between the feature described in "Breakpoint > Menus" and the multiple-location breakpoints that was the subject of > this thread. > > Are these features the same (i.e., is the format of the > multiple-locations breakpoint listing described in "Set Break" what we > use for breakpoints set from the menu described in "Breakpoint > Menus")? Or are they two different features? They are different. "Breakpoint menus" are for overloaded function, where a single name 'foo' may refer to completely different functions in source code. Multiple locations handle a case where a specific function in source corresponds to multiple PC values. > > If the former, won't additional locations, which we didn't select from > the menu, appear in the list of locations as result of loading shared > libraries that define additional overloaded variants of the function > in which we wanted to break? > > If the latter, I cannot seem to find the description of how multiple > locations come into existence in the first place anywhere in the > manual. Am I missing something? The manual lists cases where a given function in source can correspond to several PC values, and they say: In all those cases, @value{GDBN} will insert a breakpoint at all the relevant locations. So it happens automatically. - Volodya