From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12163: 24.1; Can not input anything or showing none output when debugging c/c++ application. Date: Fri, 10 Aug 2012 12:50:21 +0300 Message-ID: <837gt7dqjm.fsf@gnu.org> References: <83obmkdoli.fsf@gnu.org> <83ehnfdzgw.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344592259 11737 80.91.229.3 (10 Aug 2012 09:50:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 09:50:59 +0000 (UTC) Cc: 12163@debbugs.gnu.org To: qq510371827 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 11:50:59 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Szlrt-0002xs-8n for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 11:50:57 +0200 Original-Received: from localhost ([::1]:51571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szlrs-0007sO-IB for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 05:50:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szlrl-0007nO-KO for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 05:50:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Szlrj-0000Pr-Ep for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 05:50:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szlrj-0000Pn-9L for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 05:50:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Szlzh-0007Ie-IR for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 05:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Aug 2012 09:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12163 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12163-submit@debbugs.gnu.org id=B12163.134459271428016 (code B ref 12163); Fri, 10 Aug 2012 09:59:01 +0000 Original-Received: (at 12163) by debbugs.gnu.org; 10 Aug 2012 09:58:34 +0000 Original-Received: from localhost ([127.0.0.1]:46059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzlzF-0007Ho-Ov for submit@debbugs.gnu.org; Fri, 10 Aug 2012 05:58:34 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:62139) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzlzD-0007Hg-AN for 12163@debbugs.gnu.org; Fri, 10 Aug 2012 05:58:32 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M8J006009R7KI00@a-mtaout23.012.net.il> for 12163@debbugs.gnu.org; Fri, 10 Aug 2012 12:50:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8J006AN9ZRKY00@a-mtaout23.012.net.il>; Fri, 10 Aug 2012 12:50:15 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62998 Archived-At: > From: qq510371827 > Date: Fri, 10 Aug 2012 17:14:14 +0800 > > > Try invoking GDB from Emacs like this: > > > > M-x gud-gdb RET > > > > If that doesn't help, either, then I'm clueless, sorry. Perhaps > > someone else could help. > > > Thanks for your patience. It finally works. However, two other new > problem appeared after using 'gud-gdb'. > 1).the code, gdb information and out/input datas mixed together in the same > buffer and 'gdb-many-windows' command didn't work any more. This is expected. gud-gdb uses the old interface with GDB, which doesn't support gdb-many-windows. > 2) You can refer this link: > http://stackoverflow.com/questions/9676135/gud-gdb-emacs-24-not-working > The same problem as mine. No, it isn't the same. Your problem was with getting input and output to and from the debuggee. The above URL describes a much more serious problem, whereby Emacs doesn't show the source code of functions you step through. I don't see any of this in your original bug report (and it surely works for me on MS-Windows). As for the original problem: could you please post here a minimal C program that exhibits the problem with I/O when you use "M-x gdb"? I will then try to look into the reasons of this and the possible ways to solve that, when I have time. Thanks.