From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: qq510371827 Newsgroups: gmane.emacs.bugs Subject: bug#12163: 24.1; Can not input anything or showing none output when debugging c/c++ application. Date: Thu, 9 Aug 2012 22:54:24 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf30207888b08a1904c6d66915 X-Trace: dough.gmane.org 1344527535 26264 80.91.229.3 (9 Aug 2012 15:52:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Aug 2012 15:52:15 +0000 (UTC) To: 12163@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 09 17:52:14 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 1SzV1r-0001MV-Fj for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Aug 2012 17:52:07 +0200 Original-Received: from localhost ([::1]:33762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzV1q-0001mp-RD for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Aug 2012 11:52:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzV1m-0001mk-KP for bug-gnu-emacs@gnu.org; Thu, 09 Aug 2012 11:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzV1c-0000EH-KG for bug-gnu-emacs@gnu.org; Thu, 09 Aug 2012 11:52:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzV1c-0000E6-GM for bug-gnu-emacs@gnu.org; Thu, 09 Aug 2012 11:51:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SzV9W-0005u2-5d for bug-gnu-emacs@gnu.org; Thu, 09 Aug 2012 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: qq510371827 Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Aug 2012 16:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12163 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134452799722646 (code B ref -1); Thu, 09 Aug 2012 16:00:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Aug 2012 15:59:57 +0000 Original-Received: from localhost ([127.0.0.1]:44991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzV9P-0005tB-PR for submit@debbugs.gnu.org; Thu, 09 Aug 2012 11:59:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35174) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzUGu-0004cn-TL for submit@debbugs.gnu.org; Thu, 09 Aug 2012 11:03:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzU8u-0003ub-8F for submit@debbugs.gnu.org; Thu, 09 Aug 2012 10:55:26 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:34107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzU8u-0003uX-4u for submit@debbugs.gnu.org; Thu, 09 Aug 2012 10:55:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzU8n-00052E-OS for bug-gnu-emacs@gnu.org; Thu, 09 Aug 2012 10:55:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzU8h-0003qp-A0 for bug-gnu-emacs@gnu.org; Thu, 09 Aug 2012 10:55:13 -0400 Original-Received: from mail-wi0-f171.google.com ([209.85.212.171]:35327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzU8h-0003pd-0a for bug-gnu-emacs@gnu.org; Thu, 09 Aug 2012 10:55:07 -0400 Original-Received: by wibhq4 with SMTP id hq4so304125wib.12 for ; Thu, 09 Aug 2012 07:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=8lk2q27qCGmf/YJiPol0zsjmYzBRk9y5KR1OQKJd0gM=; b=xSiWwn4yrDdm4BynZjhe1o2i6aWnWZBZdLZ7Ls3APT4Cqc14VYFAEbrIsXk+xBu28H uF7LMvYPD9oe//ZMlg2CYP6iH7TbC0NGBQExbVCvNlGs1F0U7kL9lO/c3TsYiSqJFK8y zLNtxQIzDlfci1LQdzV/rYtcZqLv+khqYYOXKDFDlarn5xi2WU13mEMVIBcy3S5AqRWL r/afWvk6zg3CP9O3LikWHrH4F1V9smzd/tIVm8EUzxG8JIAziQmdc1ORGMM47BB1XYi6 tXX+7o6POQToutjfI/kgb1NsLnCaU0WyPIYFDzLIF8jJao75qmdJecpsbtGbM9Nb0YTe dSlQ== Original-Received: by 10.217.3.7 with SMTP id q7mr8172959wes.47.1344524105320; Thu, 09 Aug 2012 07:55:05 -0700 (PDT) Original-Received: by 10.216.210.19 with HTTP; Thu, 9 Aug 2012 07:54:24 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 09 Aug 2012 11:59:54 -0400 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:62973 Archived-At: --20cf30207888b08a1904c6d66915 Content-Type: text/plain; charset=ISO-8859-1 I am running emacs 24.1 on windows7 32bit with mginw32.When debugging my c/c++ application I can not give an iputting and can not see any output. For example: ... // line 1 ... // line 2 fgets(s,255,stdin); //line 3 ... // line 4 ... //line 5 i = 0; // line 6 Breakpoint is at this line. Then i started debugging: (gdb)r After executing the above command, it stopped at line 6 and didn't waitting for me to input values. I inputted values in input/output io buffer but nothing happend.Then I executed "(gdb)n" command,the debug toolbar icons became grey and i can not continue debugging my application.I tried to debug another application and it showed none output during the debugging. However, everything works like a charm in emacs 23.4 on windows7 with mingw32(emacs 24.1 on ubuntu 12.04 is also works very well).That'all, thank you. In GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: CHS value of $XMODIFIERS: nil locale-coding-system: cp936 default enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x g d b b SPC 1 8 r q x r e p Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Target doesn't support non-stop mode. Turning it off. Switched to thread 1 Making completion list... call-interactively: End of buffer [2 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils help-mode view gdb-mi bindat json gud easy-mmode comint ansi-color ring cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt browse-url url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util password-cache url-vars mm-util mail-prsvr time-date china-util tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) --20cf30207888b08a1904c6d66915 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am running emacs 24.1 on windows7 32bit with mginw32.When debugging = my
c/c++ application I can not give an iputting and can not see a= ny
output. For example:
=A0 =A0 =A0 =A0 =A0... =A0 =A0 = =A0 =A0 =A0// =A0line 1
=A0 =A0 =A0 =A0 =A0... =A0 =A0 =A0 =A0 =A0// =A0line 2
=A0 = =A0 =A0 =A0 =A0fgets(s,255,stdin); //line 3
=A0 =A0 =A0 =A0 =A0..= . =A0 =A0 =A0 =A0 // line 4
=A0 =A0 =A0 =A0 =A0... =A0 =A0 =A0 = =A0 //line 5
=A0 =A0 =A0 =A0 =A0i =3D 0; // line 6 =A0 =A0 =A0 = =A0 =A0Breakpoint is at this line.
Then i started debugging:
(gdb)r
After executing t= he above command, it stopped at line 6 and didn't
waitting fo= r me to input values. I inputted values in input/output io
buffer= but nothing happend.Then I executed "(gdb)n" command,the debug
toolbar icons became grey and i can not continue debugging my
application.I tried to debug another application and it showed none
=
output during the debugging. However, everything works like a charm in= emacs 23.4 on windows7 with
mingw32(emacs 24.1 on ubuntu 12.04 is also works very well).That'a= ll, thank you.


In GNU Emacs 24.1.1 = (i386-mingw-nt6.1.7601)
=A0of 2012-06-10 on MARVIN
Wind= owing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
=A0`configure --with-gcc (4.6) --cflags
=A0-ID:/devel/emacs/libs/libXpm-3.5.8/include
=A0-ID:/dev= el/emacs/libs/libXpm-3.5.8/src
=A0-ID:/devel/emacs/libs/libpng-de= v_1.4.3-1/include
=A0-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
=A0-ID:/de= vel/emacs/libs/giflib-4.1.4-1/include
=A0-ID:/devel/emacs/libs/jp= eg-6b-4/include
=A0-ID:/devel/emacs/libs/tiff-3.8.2-1/include
=A0-ID:/devel/emacs/libs/gnutls-3.0.9/include'

Important settings:
=A0 value of $LC_ALL: nil
=A0 valu= e of $LC_COLLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 v= alue of $LC_MESSAGES: nil
=A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil=
=A0 value of $LC_TIME: nil
=A0 value of $LANG: CHS
=A0 value of $XMODIFIERS: nil
=A0 locale-coding-system: cp= 936
=A0 default enable-multibyte-characters: t

Ma= jor mode: Debugger

Minor modes in effect:
=A0 tooltip-mode: t
=A0 mouse-wheel-mode: t
=A0 tool-= bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
= =A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 = blink-cursor-mode: t
=A0 auto-composition-mode: t
=A0 a= uto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input:
<= div><help-echo> <help-echo> <help-echo> <help-echo>= <drag-n-drop>=A0
<help-echo> <escape> x g d b <return> <return>= b SPC=A0
1 8 <return> r <return> q <return> &l= t;help-echo> <escape>=A0
x r e p <tab> <down-mo= use-1> <mouse-2>

Recent messages:
For information about GNU Em= acs and the GNU system, type C-h C-a.
Target doesn't support = non-stop mode. =A0Turning it off.
Switched to thread 1
Making completion list...
call-interactively: End of buffer [2 ti= mes]

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug me= ssage format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils<= /div>
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils help-mo= de view
gdb-mi bindat json gud easy-mmode comint ansi-color ring = cc-mode
cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engi= ne
cc-vars cc-defs regexp-opt browse-url url-util url-parse auth-= source
eieio byte-opt bytecomp byte-compile cconv macroexp assoc = gnus-util
password-cache url-vars mm-util mail-prsvr time-date china-util toolti= p
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table l= s-lisp
w32-win w32-vars tool-bar dnd fontset image fringe lisp-mo= de register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
=
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebre= w
greek romanian slovak czech european ethiopic indian cyrillic chinese<= /div>
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer l= oaddefs
button faces cus-face files text-properties overlay sha1 = md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process multi-tty emacs)

--20cf30207888b08a1904c6d66915--