all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with GUD and gdb-use-separate-io-buffer
       [not found] <mailman.0.1323713750.9190.help-gnu-emacs@gnu.org>
@ 2011-12-12 18:23 ` David Chappaz
  0 siblings, 0 replies; only message in thread
From: David Chappaz @ 2011-12-12 18:23 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone,

I have a simple problem when using the GUD interface with
gdb-use-separate-io-buffer enabled.

As a simple way to reproduce the problem, just start from the example below:


http://www.emacswiki.org/emacs/DebuggingWithEmacs#toc2

except I slightly adjust the code to take some input from the user:

#include <stdio.h> 
 int main(int argc, char* argv[]){
   int i, n;

  printf("Enter a loop length:");
  scanf("%d", &n);
 
  printf("hello world\n");
  for ( i=0;i<n;++i){
    printf("%d \n",i);
  } 
  return 0;
 }

When gdb-use-separate-io-buffer is nil and the GUD buffer is used as I/O
buffer for the program being bebugged, it works fine.

However, with gdb-use-separate-io-buffer enabled, everything completely
hangs as soon as I hit "enter" in the I/O buffer. Any ideas what might be
going wrong ? Any ideas where to look ??

Many thanks for your help !
Cheers,
David.






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-12 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.0.1323713750.9190.help-gnu-emacs@gnu.org>
2011-12-12 18:23 ` Problem with GUD and gdb-use-separate-io-buffer David Chappaz

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.