From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30221 invoked by alias); 23 Feb 2010 17:13:49 -0000 Received: (qmail 30161 invoked by uid 22791); 23 Feb 2010 17:13:48 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_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; Tue, 23 Feb 2010 17:13:41 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1NHDbBR017780 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 23 Feb 2010 12:13:37 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1NHDaVA024949; Tue, 23 Feb 2010 12:13:37 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o1NHDahf003415; Tue, 23 Feb 2010 12:13:36 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id B9CA6378190; Tue, 23 Feb 2010 10:13:35 -0700 (MST) From: Tom Tromey To: Hui Zhu Cc: gdb@sourceware.org Subject: Re: How to set default value of yquery and nquery References: Reply-To: tromey@redhat.com Date: Tue, 23 Feb 2010 17:13:00 -0000 In-Reply-To: (Hui Zhu's message of "Tue, 23 Feb 2010 15:08:28 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-02/txt/msg00158.txt.bz2 >>>>> ">" == Hui Zhu writes: >> A people want set a lot of command with .gdbinit, >> He want set a breakpoint to a solib before load it. >> He just got: >> Function "www2" not defined. >> Make breakpoint pending on future shared library load? (y or [n]) >> [answered N; input not from terminal] >> We can handle this issue with load solib before set breakpoint. But >> does GDB have some ways to set default value with input not from >> terminal? In this particular case you can also use "set breakpoint pending". I don't think there is a general facility for answering queries from a script. Tom