OSDN Git Service

2000-10-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
authorFernando Nasser <fnasser@redhat.com>
Mon, 23 Oct 2000 22:41:54 +0000 (22:41 +0000)
committerFernando Nasser <fnasser@redhat.com>
Mon, 23 Oct 2000 22:41:54 +0000 (22:41 +0000)
        * gdbtk-hooks.c (x_events): Only process events if the target is
        running.

gdb/gdbtk/generic/ChangeLog
gdb/gdbtk/generic/gdbtk-hooks.c

index 33acb82..f833aed 100644 (file)
@@ -1,5 +1,10 @@
 2000-10-23  Fernando Nasser  <fnasser@totem.to.cygnus.com>
 
+       * gdbtk-hooks.c (x_events): Only process events if the target is
+       running.
+
+2000-10-23  Fernando Nasser  <fnasser@totem.to.cygnus.com>
+
        * gdbtk-variable.c: Removed. Obsolete file.
 
 2000-10-13  Fernando Nasser  <fnasser@totem.to.cygnus.com>
index e780d81..98fd8a8 100644 (file)
@@ -416,9 +416,19 @@ x_event (signo)
   static volatile int in_x_event = 0;
   static Tcl_Obj *varname = NULL;
   static int count = 0;
+
+  /* Do nor re-enter this code or enter it while collecting gdb output. */
   if (in_x_event || in_fputs)
     return 0;
 
+  /* Also, only do things while the target is running (stops and redraws).
+     FIXME: We wold like to at least redraw at other times but this is bundled
+     together in the TCL_WINDOW_EVENTS group and we would also process user
+     input.  We will have to prevent (unwanted)  user input to be generated
+     in order to be able to redraw (removing this test here). */
+  if (!running_now)
+    return 0;
+
   in_x_event = 1;
   gdbtk_force_detach = 0;