From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13463 invoked by alias); 24 Feb 2010 06:08:22 -0000 Received: (qmail 13391 invoked by uid 22791); 24 Feb 2010 06:08:21 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Feb 2010 06:08:15 +0000 Received: by pvh11 with SMTP id 11so695853pvh.0 for ; Tue, 23 Feb 2010 22:08:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.249.19 with SMTP id w19mr1392035wfh.194.1266991694217; Tue, 23 Feb 2010 22:08:14 -0800 (PST) In-Reply-To: References: From: Hui Zhu Date: Wed, 24 Feb 2010 06:19:00 -0000 Message-ID: Subject: Re: How to set default value of yquery and nquery To: tromey@redhat.com Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2010-02/txt/msg00163.txt.bz2 Thanks Tom. Hui On Wed, Feb 24, 2010 at 01:13, Tom Tromey wrote: >>>>>> ">" =3D=3D 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. =A0But >>> 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 >