GNU bug report logs -
#12180
Fwd: bug#12163: 24.1; Can not input anything or showing none output when debugging c/c++ application.
Previous Next
Reported by: qq510371827 <qq510371827 <at> gmail.com>
Date: Sat, 11 Aug 2012 15:21:01 UTC
Severity: normal
Tags: moreinfo
Merged with 12163
Found in version 24.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12180 in the body.
You can then email your comments to 12180 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12180
; Package
emacs
.
(Sat, 11 Aug 2012 15:21:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
qq510371827 <qq510371827 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 11 Aug 2012 15:21:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
emacs 24.1.1(i686-pc-linux-gnu),GTK+ Version 2.24.10 of 2012-07-17 on
berkelium, modified by Debian
GNU gdb (ubuntu/Linaro 7.4-2012.04-0ubuntu2)
ubuntu 12.04 LTS.
2012/8/11 Eli Zaretskii <eliz <at> gnu.org>
> > From: qq510371827 <qq510371827 <at> gmail.com>
> > Date: Sat, 11 Aug 2012 20:32:56 +0800
> >
> > Thanks for your good work. The problem I encountered on windows is just
> as
> > you have described.But on linux(i am running ubuntu 12.04 under
> virtualbox)
> > ,it works for me.
>
> What version of Emacs do you have on Ubuntu, and what version of GDB?
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12180
; Package
emacs
.
(Sat, 11 Aug 2012 16:24:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 12180 <at> debbugs.gnu.org (full text, mbox):
> From: qq510371827 <qq510371827 <at> gmail.com>
> Date: Sat, 11 Aug 2012 23:11:33 +0800
>
> emacs 24.1.1(i686-pc-linux-gnu),GTK+ Version 2.24.10 of 2012-07-17 on
> berkelium, modified by Debian
> GNU gdb (ubuntu/Linaro 7.4-2012.04-0ubuntu2)
> ubuntu 12.04 LTS.
Did you try this in a GUI session or in a TTY? If in a GUI session,
can you try in a TTY session ("emacs -Q -nw")?
Merged 12163 12180.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 11 Aug 2012 17:52:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12180
; Package
emacs
.
(Sun, 12 Aug 2012 01:42:02 GMT)
Full text and
rfc822 format available.
Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Yes,I have tried that.Both GUI session and TTY session work very well.
2012/8/12 Eli Zaretskii <eliz <at> gnu.org>
> > From: qq510371827 <qq510371827 <at> gmail.com>
> > Date: Sat, 11 Aug 2012 23:11:33 +0800
> >
> > emacs 24.1.1(i686-pc-linux-gnu),GTK+ Version 2.24.10 of 2012-07-17 on
> > berkelium, modified by Debian
> > GNU gdb (ubuntu/Linaro 7.4-2012.04-0ubuntu2)
> > ubuntu 12.04 LTS.
>
> Did you try this in a GUI session or in a TTY? If in a GUI session,
> can you try in a TTY session ("emacs -Q -nw")?
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12180
; Package
emacs
.
(Sun, 12 Aug 2012 01:42:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12180
; Package
emacs
.
(Sun, 12 Aug 2012 18:06:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 12180 <at> debbugs.gnu.org (full text, mbox):
> From: qq510371827 <qq510371827 <at> gmail.com>
> Date: Sun, 12 Aug 2012 09:32:14 +0800
> Cc: 12180 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
>
> Yes,I have tried that.Both GUI session and TTY session work very well.
I guess it's a matter of timing, then: there's a certain race
condition between Emacs that crams commands into GDB and the debuggee
that reads from stdin. If the latter comes after Emacs already sent
all the commands, then the program will work correctly. But that's a
guess; I hope someone knowledgeable about GUD, comint, and gdb-mi will
chime in. Nick? somebody?
Anyway, I found a work-around for this problem. After entering GDB,
and before running your program, type this command at GDB prompt:
(gdb) set new-console on
This will cause GDB to create a separate console window for the input
and output of your program, when you run it, and you can then
communicate with your program without mixing its I/O with that of GDB.
Just be sure to put a breakpoint at the 'exit' call or at the last
line of your 'main' function, if you want to look at the program
output. If you don't do that, the console will be automatically
closed when your program exits.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12180
; Package
emacs
.
(Mon, 13 Aug 2012 14:11:02 GMT)
Full text and
rfc822 format available.
Message #22 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
' set new-console on ' command works for me. I have tried eclipse cdt and
it also has the same problem as emacs 24.1 on windows with mingw.
Strangely, why emacs 23.4 just works?
2012/8/13 Eli Zaretskii <eliz <at> gnu.org>
> > From: qq510371827 <qq510371827 <at> gmail.com>
> > Date: Sun, 12 Aug 2012 09:32:14 +0800
> > Cc: 12180 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
> >
> > Yes,I have tried that.Both GUI session and TTY session work very well.
>
> I guess it's a matter of timing, then: there's a certain race
> condition between Emacs that crams commands into GDB and the debuggee
> that reads from stdin. If the latter comes after Emacs already sent
> all the commands, then the program will work correctly. But that's a
> guess; I hope someone knowledgeable about GUD, comint, and gdb-mi will
> chime in. Nick? somebody?
>
> Anyway, I found a work-around for this problem. After entering GDB,
> and before running your program, type this command at GDB prompt:
>
> (gdb) set new-console on
>
> This will cause GDB to create a separate console window for the input
> and output of your program, when you run it, and you can then
> communicate with your program without mixing its I/O with that of GDB.
> Just be sure to put a breakpoint at the 'exit' call or at the last
> line of your 'main' function, if you want to look at the program
> output. If you don't do that, the console will be automatically
> closed when your program exits.
>
[Message part 2 (text/html, inline)]
Added tag(s) fixed.
Request was from
Michael Albinus <michael.albinus <at> gmx.de>
to
control <at> debbugs.gnu.org
.
(Tue, 18 Dec 2012 13:43:01 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.4, send any further explanations to
12163 <at> debbugs.gnu.org and qq510371827 <qq510371827 <at> gmail.com>
Request was from
Michael Albinus <michael.albinus <at> gmx.de>
to
control <at> debbugs.gnu.org
.
(Tue, 18 Dec 2012 13:43:02 GMT)
Full text and
rfc822 format available.
bug No longer marked as fixed in versions 24.4 and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 18 Dec 2012 13:52:02 GMT)
Full text and
rfc822 format available.
Added tag(s) patch.
Request was from
David Edmondson <dme <at> dme.org>
to
control <at> debbugs.gnu.org
.
(Tue, 18 Nov 2014 08:25:02 GMT)
Full text and
rfc822 format available.
Removed tag(s) patch.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 30 Jun 2017 04:15:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12180
; Package
emacs
.
(Mon, 07 Feb 2022 00:06:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 12180 <at> debbugs.gnu.org (full text, mbox):
qq510371827 <qq510371827 <at> gmail.com> writes:
> 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.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Are you still seeing this issue on more recent versions of
Emacs/Windows/Mingw?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 07 Feb 2022 00:06:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12180
; Package
emacs
.
(Mon, 07 Mar 2022 02:38:02 GMT)
Full text and
rfc822 format available.
Message #40 received at 12180 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Are you still seeing this issue on more recent versions of
> Emacs/Windows/Mingw?
More information was requested, but no response was given within a
month, so I'm closing this bug report. If the problem still exists,
please respond to this email and we'll reopen the bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
12180 <at> debbugs.gnu.org and qq510371827 <qq510371827 <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 07 Mar 2022 02:38:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 04 Apr 2022 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 80 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.