aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@cygnus>1998-05-24 21:05:12 +0000
committerKeith Seitz <keiths@cygnus>1998-05-24 21:05:12 +0000
commit21b3bc779ca64a3b1d39886a74f0304c8dc96368 (patch)
tree9787fccc250279c4770c3406e0bad5a3d6f83ab0 /gdb/gdbtk.c
parentaa81c3ca9905bce9ae34908f82cc81961227a512 (diff)
downloadgdb-21b3bc779ca64a3b1d39886a74f0304c8dc96368.zip
gdb-21b3bc779ca64a3b1d39886a74f0304c8dc96368.tar.gz
gdb-21b3bc779ca64a3b1d39886a74f0304c8dc96368.tar.bz2
* 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.
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r--gdb/gdbtk.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c
index 6027cdb..4ca7a63 100644
--- a/gdb/gdbtk.c
+++ b/gdb/gdbtk.c
@@ -91,6 +91,10 @@ int (*ui_load_progress_hook) PARAMS ((char *, unsigned long));
void (*pre_add_symbol_hook) PARAMS ((char *));
void (*post_add_symbol_hook) PARAMS ((void));
+#ifdef __CYGWIN32__
+extern void (*ui_loop_hook) PARAMS ((int));
+#endif
+
char * get_prompt PARAMS ((void));
static void null_routine PARAMS ((int));
@@ -1895,6 +1899,12 @@ x_event (signo)
in_x_event = 1;
+#ifdef __CYGWIN32__
+ if (signo == -2)
+ if (gdbtk_timer_going)
+ gdbtk_stop_timer ();
+#endif
+
/* Process pending events */
while (Tcl_DoOneEvent (TCL_DONT_WAIT|TCL_ALL_EVENTS) != 0)
;
@@ -2305,6 +2315,9 @@ gdbtk_init ( argv0 )
readline_hook = gdbtk_readline;
readline_end_hook = gdbtk_readline_end;
ui_load_progress_hook = gdbtk_load_hash;
+#ifdef __CYGWIN32__
+ ui_loop_hook = x_event;
+#endif
pre_add_symbol_hook = gdbtk_pre_add_symbol;
post_add_symbol_hook = gdbtk_post_add_symbol;
create_tracepoint_hook = gdbtk_create_tracepoint;