From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31730 invoked by alias); 24 Feb 2010 06:30:02 -0000 Received: (qmail 31683 invoked by uid 22791); 24 Feb 2010 06:30:00 -0000 X-SWARE-Spam-Status: No, hits=-1.8 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:29:55 +0000 Received: by pvh11 with SMTP id 11so701881pvh.0 for ; Tue, 23 Feb 2010 22:29:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.55.16 with SMTP id d16mr10374264wfa.166.1266992994144; Tue, 23 Feb 2010 22:29:54 -0800 (PST) In-Reply-To: References: From: Hui Zhu Date: Wed, 24 Feb 2010 09:53:00 -0000 Message-ID: Subject: Re: How to set default value of yquery and nquery To: Marc Khouzam , "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/msg00165.txt.bz2 On Wed, Feb 24, 2010 at 04:51, Marc Khouzam wro= te: >> -----Original Message----- >> From: gdb-owner@sourceware.org >> [mailto:gdb-owner@sourceware.org] On Behalf Of Tom Tromey >> Sent: Tuesday, February 23, 2010 12:14 PM >> To: Hui Zhu >> Cc: gdb@sourceware.org >> Subject: Re: How to set default value of yquery and nquery >> >> >>>>> ">" =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. > Do you think we can add a command to set the non-terminal query answer? For example: set non-terminal-query-default yes/no/auto auto This is the default value. query/yquery/nquery answer will like before. yes query/yquery/nquery answer will be yes no query/yquery/nquery answer will be no > This was my problem with Eclipse and PRecord. =A0When a query is answered > not from a terminal it always takes the the default > (N for nquery(), Y for for query() and yquery()). > That is why we had to make PRecord use query() instead of nquery() > This is really a long issue. I remember that someone said this issue will be handle by MI after 7.0 release. Thanks, Hui