[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with GUD and gdb-use-separate-io-buffer

From: David Chappaz
Subject: Problem with GUD and gdb-use-separate-io-buffer
Date: Mon, 12 Dec 2011 18:23:59 -0000

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:

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 !

reply via email to

[Prev in Thread] Current Thread [Next in Thread]