From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: gdb "command" broken with -mi Date: Tue, 20 Aug 2013 18:49:10 +0300 Message-ID: <83zjscjrbd.fsf@gnu.org> References: <5213675A.4040808@cs.utoronto.ca> <834nakl9ab.fsf@gnu.org> <52138557.7010200@cs.utoronto.ca> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1377013726 30722 80.91.229.3 (20 Aug 2013 15:48:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Aug 2013 15:48:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ryan Johnson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 20 17:48:46 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VBoAn-00083Z-Ez for ged-emacs-devel@m.gmane.org; Tue, 20 Aug 2013 17:48:45 +0200 Original-Received: from localhost ([::1]:48608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBoAn-0002mR-4o for ged-emacs-devel@m.gmane.org; Tue, 20 Aug 2013 11:48:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBoAf-0002lw-Ck for emacs-devel@gnu.org; Tue, 20 Aug 2013 11:48:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBoAa-0002Uy-1q for emacs-devel@gnu.org; Tue, 20 Aug 2013 11:48:37 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:37961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBoAZ-0002SC-PE for emacs-devel@gnu.org; Tue, 20 Aug 2013 11:48:31 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MRU00I006FZ9S00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 20 Aug 2013 18:48:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRU00HIY6KRYL90@a-mtaout22.012.net.il>; Tue, 20 Aug 2013 18:48:28 +0300 (IDT) In-reply-to: <52138557.7010200@cs.utoronto.ca> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162925 Archived-At: > Date: Tue, 20 Aug 2013 11:03:51 -0400 > From: Ryan Johnson > CC: emacs-devel@gnu.org > > The STC is: > 1. gcc -g -ostc -xc <(echo "int main() { return 0; }") > 2. Fire up emacs M-x gdb and point it at stc > 3. b main > 4. comm 1 > > Reading symbols from /home/Ryan/experiments/a.exe...done. > > (gdb) b main > > Breakpoint 1 at 0x1004010dd: file stc.c, line 2. > > (gdb) comm 1 > > Type commands for breakpoint(s) 1, one per line. > > End with a line saying just "end". > > >p $pc > > >end > > > > > > > > > C-c C-cQuit > > (gdb) > > If it's fixed in later versions, though, maybe Ken's (hopefully > soon-arriving) cygwin package update that fixes the stack overflow > problem will also pick up this fix. v24.3 should have the fix. This works for me on Windows (in a native build) and on GNU/Linux, so this could be something specific to Cygwin or to your system. Some things to try: . Once you enter GDB, type "set interactive-mode off" before any other GDB command, and see if that solves the problem. . Try a different version of GDB, especially if you are using some development snapshot. . Make sure your gdb-mi.el has a variable named gdb-control-level (this was part of solving the problem). Also, make sure you don't have some old gdb-mi.el shadowing the one in v24.3.