From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11912 invoked by alias); 13 Apr 2008 08:56:23 -0000 Received: (qmail 11903 invoked by uid 22791); 13 Apr 2008 08:56:23 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 13 Apr 2008 08:56:00 +0000 Received: from kahikatea.snap.net.nz (62.62.255.123.dynamic.snap.net.nz [123.255.62.62]) by viper.snap.net.nz (Postfix) with ESMTP id 6AC553DA2FC; Sun, 13 Apr 2008 20:55:57 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 4D56C8FC6D; Sun, 13 Apr 2008 20:55:56 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18433.51867.377695.993408@kahikatea.snap.net.nz> Date: Sun, 13 Apr 2008 21:41:00 -0000 To: Daniel Jacobowitz Cc: Marty Leisner , gdb@sourceware.org Subject: Re: breaking on open(2) on linux In-Reply-To: <20080413041833.GA19526@caradoc.them.org> References: <200804122237.m3CMbtfl022914@dell2.home> <18433.16837.203782.236874@kahikatea.snap.net.nz> <20080413041833.GA19526@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 22.2.50.2 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/msg00108.txt.bz2 > > The breakpoint is probably being set elsewhere, e.g. open in libpthread.so > > Nowadays (6.8) you'll get a breakpoint at every copy so it should work > OK. Do you mean multiple breakpoint locations? With 6.8.50.20080411-cvs I just get one address: the one in libpthread.so. My `solution' was wrong though, as the symbols for libpthread.so just get read when a breakpoint is set on open. For some reason in GDB 6.6, a pending breakpoint gets resolved in libc.so while in 6.8.50.20080411-cvs it gets resolved in libpthread.so. -- Nick http://www.inet.net.nz/~nickrob