Buffering problems with "gdb < foo"
Eli Zaretskii
eliz@delorie.com
Tue Mar 7 00:51:00 GMT 2000
> dir needs no confirmation if not invoked from tty !
Did you actually look at the from_tty variable's value inside
dir_command? I don't have the GDB 5.0 binary here, but GDB certainly
*does* ask for confirmation if invoked with stdin and stdout
redirected, at least in the DJGPP version. Elena, is that a bug?
Anyway, the basic point is still valid, even if this particular
example is not: when stdin is redirected to a file, GDB should turn
editing off.
> I think its because y is not a valid GDB command !
Invalid commands don't cause GDB to exit, they just result in an error
message. It would be inconceivable to have GDB exit every time I
mistype a command ;-).
More information about the Gdb
mailing list