* 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