--- gdb/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: src/gdb/main.c =================================================================== --- src.orig/gdb/main.c 2007-12-04 23:21:10.000000000 +0000 +++ src/gdb/main.c 2007-12-04 23:23:22.000000000 +0000 @@ -875,6 +875,14 @@ extern int gdbtk_test (char *); int gdb_main (struct captured_main_args *args) { + printf ("isatty (0) = %d\n", isatty (0)); + printf ("isatty (1) = %d\n", isatty (1)); + printf ("isatty (2) = %d\n", isatty (2)); + + printf ("ttyname (0) = %s\n", ttyname (0)); + printf ("ttyname (1) = %s\n", ttyname (1)); + printf ("ttyname (2) = %s\n", ttyname (2)); + use_windows = args->use_windows; catch_errors (captured_main, args, "", RETURN_MASK_ALL); /* The only way to end up here is by an error (normal exit is