From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31407 invoked by alias); 21 Oct 2008 12:18:48 -0000 Received: (qmail 31399 invoked by uid 22791); 21 Oct 2008 12:18:47 -0000 X-Spam-Check-By: sourceware.org Received: from eu1sys200aog016.obsmtp.com (HELO eu1sys200aog016.obsmtp.com) (207.126.144.130) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 21 Oct 2008 12:17:57 +0000 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob016.postini.com ([207.126.147.11]) with SMTP; Tue, 21 Oct 2008 12:17:53 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 25223DAE7 for ; Tue, 21 Oct 2008 12:17:53 +0000 (GMT) Received: from mail1.cro.st.com (mail1.cro.st.com [164.129.40.131]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F3C214C08B for ; Tue, 21 Oct 2008 12:17:52 +0000 (GMT) Received: from crx595.cro.st.com (crx595.cro.st.com [164.129.44.95]) by mail1.cro.st.com (MOS 3.8.7a) with ESMTP id CQE49946 (AUTH "denis pilat"); Tue, 21 Oct 2008 14:18:58 +0200 (CEST) Message-ID: <48FDC870.5040900@st.com> Date: Tue, 21 Oct 2008 12:18:00 -0000 From: Denis PILAT User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Query user with gdb MI intepreter Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00080.txt.bz2 Hi all 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 ? I thought that gdb should not query user when using MI mode, but I can we wrong, that's my point. 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 #6 0x0805ba75 in defaulted_query (ctlstr=0x83459ac "%s\nQuit this debugging session? ", defchar=0 '\0',args=0xbfff8ab4 "6r\t\030\001") at /local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:1215 #7 0x0805bc36 in query (ctlstr=0x83459ac "%s\nQuit this debugging session? ") at /local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:1312 #8 0x0805be92 in internal_vproblem (problem=0x83e04a0, file=0x838e684 "/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c", line=, fmt=0x8342d79 "%s: Assertion `%s' failed.", ap=0xbfff8b2c "T�\b\016�\b") at /local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:746 #9 0x08059723 in internal_verror (file=0x838e684 "/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c", line=280, fmt=0x8342d79 "%s: Assertion `%s' failed.", ap=0xbfff8b2c "T�\b\016�\b") at /local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:805 #10 0x08059759 in internal_error (file=0x838e684 "/local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c", line=280, string=0x8342d79 "%s: Assertion `%s' failed.") at /local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/utils.c:814 #11 0x0812c0a8 in dwarf2_restore_rule (gdbarch=, reg_num=, fs=0x983dbc0, eh_frame_p=1) at /local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c:280 #12 0x0812c25f in execute_cfa_program (insn_ptr=0x9988eba "\f\f\020", insn_end=0x9988ec0 "\034", next_frame=0x96c5900, fs=0x983dbc0, eh_frame_p=1) at /local/pd10/st200/svn/branches/20080922_ST200GDB_6.8-ST-2.0/src/gdb/dwarf2-frame.c:360 Thanks for your feedback, Denis