From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22558 invoked by alias); 20 Dec 2005 15:37:27 -0000 Received: (qmail 22550 invoked by uid 22791); 20 Dec 2005 15:37:26 -0000 X-Spam-Check-By: sourceware.org Received: from smtp13.wanadoo.fr (HELO smtp13.wanadoo.fr) (193.252.22.54) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Dec 2005 15:37:23 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1301.wanadoo.fr (SMTP Server) with ESMTP id 7FA687000040 for ; Tue, 20 Dec 2005 16:37:21 +0100 (CET) Received: from takamaka.act-europe.fr (AStDenis-105-1-18-214.w81-248.abo.wanadoo.fr [81.248.215.214]) by mwinf1301.wanadoo.fr (SMTP Server) with ESMTP id 1DFD97000094; Tue, 20 Dec 2005 16:37:21 +0100 (CET) X-ME-UUID: 20051220153721122.1DFD97000094@mwinf1301.wanadoo.fr Received: by takamaka.act-europe.fr (Postfix, from userid 507) id E57E247E79; Tue, 20 Dec 2005 19:37:13 +0400 (RET) Date: Tue, 20 Dec 2005 15:37:00 -0000 From: Joel Brobecker To: Fabio De Bona Cc: gdb@sources.redhat.com Subject: Re: sourcing gdb-scripts and future shared lib loads Message-ID: <20051220153713.GV31944@adacore.com> References: <43A824AB.1030709@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43A824AB.1030709@gmx.net> User-Agent: Mutt/1.4i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00166.txt.bz2 > I face the following problem: I created a file with gdb commands to be > sourced in gdb or used via gdb -x file, in which I want to set some > breakpoints in parts of my application that are loaded in the future. > When you do this interactive gdb usually asks you if you want to create > breakpoints for symbols loaded in the future. The problem is that the > question is automatically answered with "no" if you use the above script > approach (same like setting 'set confirm off' in interactive mode). How > can I tell gdb to answer all questions with "yes" when it executes one > of my scripts ? Has anyone an idea how to solve this problem ? Read the manual, Luke. The following should help you solve that problem: (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. -- Joel