From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26264 invoked by alias); 23 Oct 2008 06:45:09 -0000 Received: (qmail 26255 invoked by uid 22791); 23 Oct 2008 06:45:09 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Oct 2008 06:44:15 +0000 Received: from kahikatea.snap.net.nz (36.60.255.123.dynamic.snap.net.nz [123.255.60.36]) by viper.snap.net.nz (Postfix) with ESMTP id BB5903DA4FE; Thu, 23 Oct 2008 19:44:11 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 1154C8FC6D; Thu, 23 Oct 2008 19:44:09 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18688.7480.96669.634046@kahikatea.snap.net.nz> Date: Thu, 23 Oct 2008 06:45:00 -0000 To: Denis PILAT Cc: gdb@sourceware.org Subject: Re: Query user with gdb MI intepreter X-Mailer: VM 7.19 under Emacs 22.3.1 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: 2008-10/txt/msg00102.txt.bz2 > I have a problem with the current gdb that, run from an eclipse front-end > using MI interpreter, query the user with defaulted_query () to prompt him to > "Quit this debugging session?" . > > Is that a normal behavior or not ? MI has no provision for handling query functions > I thought that gdb should not query user when using MI mode, but I can we > wrong, that's my point. MI avoids queries generated by CLI commands by implicitly answering them in the affirmative (by making deprecated_query_hook return 1). > Here is part of th back trace. As you will see, we > have an assertion that comes from a problem with the frame unwinder, but I > want first to make sure that this assertion can request for user interaction > or no. The command that leads to the assertion is a simple -exec-next This query arose (indirectly) from an MI command. Only a few MI commands deal with queries, e.g, -break-insert for pending breakpoints and and breakpoint menus, and they just take a default action. If you want to request for user interaction you will need to give MI a richer set of output records. Good luck! -- Nick http://www.inet.net.nz/~nickrob