From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8903 invoked by alias); 28 Oct 2008 23:48:12 -0000 Received: (qmail 8894 invoked by uid 22791); 28 Oct 2008 23:48:11 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Oct 2008 23:47:25 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id E982A2B012; Tue, 28 Oct 2008 16:47:23 -0700 (PDT) Received: from [10.20.92.59] (promb-2s-dhcp59.eng.vmware.com [10.20.92.59]) by mailhost2.vmware.com (Postfix) with ESMTP id D0AD38E55B; Tue, 28 Oct 2008 16:47:23 -0700 (PDT) Message-ID: <4907A32E.9000101@vmware.com> Date: Tue, 28 Oct 2008 23:48:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: Russell Shaw CC: "gdb@sourceware.org" Subject: Re: gdbinit breakpoints References: <4907A212.8020100@netspace.net.au> In-Reply-To: <4907A212.8020100@netspace.net.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-10/txt/msg00126.txt.bz2 Russell Shaw wrote: > Hi, > I set in .gdbinit many breakpoints that are in a dl-loaded library: > > b mem_terminate > ... > > When starting gdb, i get: > > Make breakpoint pending on future shared library load? (y or [n]) [answered N; > input not from terminal] > > Function "mem_terminate" not defined. > > > How do i make it answer "y" automatically? "set breakpoint pending on" (gdb) help set breakpoint pending Set debugger's behavior regarding pending breakpoints. If on, an unrecognized breakpoint location will cause gdb to create a pending breakpoint. If off, an unrecognized breakpoint location results in an error. If auto, an unrecognized breakpoint location results in a user-query to see if a pending breakpoint should be created.