From 21b3bc779ca64a3b1d39886a74f0304c8dc96368 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Sun, 24 May 1998 21:05:12 +0000 Subject: * ser-unix.c (wait_for): Do not reset timeout_remaining for cygwin32 so that we can use this member to track real timeouts. (hardwire_readchar): Modify for cygwin32 so that we only ever use a real system timeout of one second. Track the "real" timeout as a series of th ese one second timeouts. Call ui_loop_hook to keep the gui alive. * top.c: Define new hook for cygwin32, "ui_loop_hook". * gdbtk.c (gdbtk_init): Add ui_loop_hook for CygWin32 to work around update problems. --- gdb/top.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/top.c') diff --git a/gdb/top.c b/gdb/top.c index 248a44d..b9d759b 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -379,6 +379,9 @@ static void stop_sig PARAMS ((int)); command file. */ void (*init_ui_hook) PARAMS ((char *argv0)); +#ifdef __CYGWIN32__ +void (*ui_loop_hook) PARAMS ((int)); +#endif /* Called instead of command_loop at top level. Can be invoked via return_to_top_level. */ -- cgit v1.1