From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25164 invoked by alias); 13 Apr 2008 21:38:38 -0000 Received: (qmail 25156 invoked by uid 22791); 13 Apr 2008 21:38:36 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 13 Apr 2008 21:38:06 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D7A62983D9; Sun, 13 Apr 2008 21:38:04 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id ABC9E98011; Sun, 13 Apr 2008 21:38:04 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jl9tj-0003RH-C8; Sun, 13 Apr 2008 17:38:03 -0400 Date: Sun, 13 Apr 2008 22:05:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Marty Leisner , gdb@sourceware.org, Vladimir Prus Subject: Re: breaking on open(2) on linux Message-ID: <20080413213803.GA12877@caradoc.them.org> Mail-Followup-To: Nick Roberts , Marty Leisner , gdb@sourceware.org, Vladimir Prus References: <200804122237.m3CMbtfl022914@dell2.home> <18433.16837.203782.236874@kahikatea.snap.net.nz> <20080413041833.GA19526@caradoc.them.org> <18433.51867.377695.993408@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18433.51867.377695.993408@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.17 (2007-12-11) 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-04/txt/msg00109.txt.bz2 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? -- Daniel Jacobowitz CodeSourcery