From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25430 invoked by alias); 15 Nov 2009 13:12:53 -0000 Received: (qmail 25421 invoked by uid 22791); 15 Nov 2009 13:12:53 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 Nov 2009 13:11:49 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAFDBmRp009522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 15 Nov 2009 08:11:48 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAFDBjuT002900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 15 Nov 2009 08:11:47 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id nAFDBj67015554; Sun, 15 Nov 2009 14:11:45 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id nAFDBhev015553; Sun, 15 Nov 2009 14:11:43 +0100 Date: Sun, 15 Nov 2009 18:46:00 -0000 From: Jan Kratochvil To: ranjith kumar Cc: gdb@sourceware.org Subject: Re: gdb basic questions Message-ID: <20091115131143.GA15186@host0.dyn.jankratochvil.net> References: <31cff80d0911150341xcbd1ec8l661fd9bbc944fa91@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31cff80d0911150341xcbd1ec8l661fd9bbc944fa91@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-08-17) 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: 2009-11/txt/msg00145.txt.bz2 On Sun, 15 Nov 2009 12:41:18 +0100, ranjith kumar wrote: > 1) Is there any way to keep breakpoints at 1000 functions, without > typing ?( Assume I have saved all 1000 funcion names in a file) + > 2) Generally, is it possible to ask gdb to go and read 'gdb commands' > from a file? (gdb) help source Read commands from a file named FILE. Optional -v switch (before the filename) causes each command in FILE to be echoed as it is executed. Note that the file ".gdbinit" is read automatically in this way when GDB is started. Optional -p switch (before the filename) causes FILE to be evaluated as Python code. > 3) Another question. Sometimes gdb diplays a message like below and > waits for user to type 'y or n'. > "Make breakpoint pending on future shared library load? (y or [n]) " > How to tell gdb to not to wait for input from user and assume that > user has typed 'y' always ? (gdb) 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. In some other cases one needs: (gdb) set confirm off (gdb) help set confirm Set whether to confirm potentially dangerous operations. Regards, Jan