From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3179 invoked by alias); 15 Apr 2008 08:12:02 -0000 Received: (qmail 3165 invoked by uid 22791); 15 Apr 2008 08:12:01 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Apr 2008 08:11:39 +0000 Received: (qmail 13637 invoked from network); 15 Apr 2008 08:11:37 -0000 Received: from unknown (HELO wind.local) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Apr 2008 08:11:37 -0000 From: Vladimir Prus To: Nick Roberts , Marty Leisner , gdb@sourceware.org Subject: Re: breaking on open(2) on linux Date: Tue, 15 Apr 2008 10:27:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <200804122237.m3CMbtfl022914@dell2.home> <18433.51867.377695.993408@kahikatea.snap.net.nz> <20080413213803.GA12877@caradoc.them.org> In-Reply-To: <20080413213803.GA12877@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804151211.33371.vladimir@codesourcery.com> 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-04/txt/msg00123.txt.bz2 On Monday 14 April 2008 01:38:03 Daniel Jacobowitz wrote: > On Sun, Apr 13, 2008 at 08:55:55PM +1200, Nick Roberts wrote: > > Do you mean multiple breakpoint locations? With 6.8.50.20080411-cvs I just get > > one address: the one in libpthread.so. > > Indeed it does not seem to work: > > #12 0x0000000000000000 in ?? () > (gdb) i func ^open$ > All functions matching regular expression "^open$": > > Non-debugging symbols: > 0x00002aaaaaabea70 open > 0x00002aaaadc21a50 open > 0x00002aaaadc21a50 open > (gdb) b open > Breakpoint 2 at 0x2aaaadc21a50 > (gdb) i breakpoints > Num Type Disp Enb Address What > 1 breakpoint del y main > 2 breakpoint keep y 0x00002aaaadc21a50 > > Vladimir, can you see any reason this wouldn't work with multiple > minimal symbols? Maybe the multiple location support is entirely > in the partial/full symbol and line number based breakpoint support? The multiple location support only works if there line number information for all locations. We discussed this (maybe internally) -- the really right solution would require modifying the symbol table interfacecs to allow to return several symbols for a single name. It's hard. - Volodya