* 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.
This commit is contained in:
Keith Seitz
1998-05-24 21:05:12 +00:00
parent aa81c3ca99
commit 21b3bc779c
4 changed files with 56 additions and 3 deletions

View File

@@ -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. */