unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: qq510371827 <qq510371827@gmail.com>
To: eliz@gnu.org, 12180@debbugs.gnu.org
Subject: bug#12180: bug#12163: 24.1; Can not input anything or showing none output when debugging c/c++ application.
Date: Mon, 13 Aug 2012 22:00:33 +0800	[thread overview]
Message-ID: <CAORnh3jrv4qK88o2uXgRSpw_9RsSi2LuaCmKjHa3fwQxvhwpoA@mail.gmail.com> (raw)
In-Reply-To: <83has86lk9.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

' 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@gnu.org>

> > From: qq510371827 <qq510371827@gmail.com>
> > Date: Sun, 12 Aug 2012 09:32:14 +0800
> > Cc: 12180@debbugs.gnu.org, bug-gnu-emacs@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.
>

[-- Attachment #2: Type: text/html, Size: 1973 bytes --]

  reply	other threads:[~2012-08-13 14:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 14:54 bug#12163: 24.1; Can not input anything or showing none output when debugging c/c++ application qq510371827
     [not found] ` <83obmkdoli.fsf@gnu.org>
     [not found]   ` <CAORnh3gDSy9iG=o8E=Hnx=UaqzM6+Of5iN99-7Gyp46iVVMJHw@mail.gmail.com>
2012-08-10  6:37     ` Eli Zaretskii
2012-08-10  9:14       ` qq510371827
2012-08-10  9:50         ` Eli Zaretskii
2012-08-10 10:18           ` qq510371827
2012-08-10 17:57             ` Eli Zaretskii
2012-08-11 12:32               ` qq510371827
2012-08-11 14:31                 ` Eli Zaretskii
     [not found]                   ` <CAORnh3gFYYVmB7gujppmv3cs6rGm6Dei1vPYxGixtnVLSXrC5w@mail.gmail.com>
2012-08-11 15:11                     ` bug#12180: Fwd: " qq510371827
2012-08-11 16:15                       ` bug#12180: " Eli Zaretskii
2012-08-12  1:32                         ` qq510371827
2012-08-12 17:56                           ` Eli Zaretskii
2012-08-13 14:00                             ` qq510371827 [this message]
2022-02-07  0:05 ` bug#12163: bug#12180: Fwd: " Lars Ingebrigtsen
2022-03-07  2:37   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAORnh3jrv4qK88o2uXgRSpw_9RsSi2LuaCmKjHa3fwQxvhwpoA@mail.gmail.com \
    --to=qq510371827@gmail.com \
    --cc=12180@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).