This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Buffering problems with "gdb < foo"



>  > Does this work on Unix?  If so, it would make this a DJGPP-specific
>  > problem.
> 
> I haven't tried, but probably it won't. Can you send me your command file?

It is simply "gdb < foo > bar".  The input file `foo' looks like this:

  shell gcc -g -o t.exe t.c
  file t.exe
  dir
  y
  dir .
  break main
  run
  q
  y

(If needed, I can send the exact file used for the input.)  Try this,
and you will see that GDB exits immediately after it processes the
first "dir" command.

>  > If this is not DJGPP-specific, then I think _initialize_event_loop
>  > should turn editing off if input_fd is not a tty.
> 
> I think so, can you submit a patch to do this? 

Will do.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]