Garbage collect the infwait_state global
authorPedro Alves <palves@redhat.com>
Wed, 12 Nov 2014 11:02:11 +0000 (11:02 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 12 Nov 2014 11:02:11 +0000 (11:02 +0000)
No longer used since the non-continuable watchpoints handling rework.

gdb/
2014-11-12  Pedro Alves  <palves@redhat.com>

* infrun.c (enum infwait_states, infwait_state): Delete.

gdb/ChangeLog
gdb/infrun.c

index 43bd9b7a1b53ee8f03266a378da9a8bf3073b0a5..c6e83158feb9846d1dd16342e7b0f5c5ff966100 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-12  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (enum infwait_states, infwait_state): Delete.
+
 2014-11-12  Pedro Alves  <palves@redhat.com>
 
        * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
index 0dcc141f4439d38b6b04d5bb63772f413408b0bd..7e59f558b44c54b4c6f025aa2fd73878b24ef5d3 100644 (file)
@@ -2769,20 +2769,6 @@ init_wait_for_inferior (void)
 }
 
 \f
-/* This enum encodes possible reasons for doing a target_wait, so that
-   wfi can call target_wait in one place.  (Ultimately the call will be
-   moved out of the infinite loop entirely.) */
-
-enum infwait_states
-{
-  infwait_normal_state,
-  infwait_step_watch_state,
-  infwait_nonstep_watch_state
-};
-
-/* Current inferior wait state.  */
-static enum infwait_states infwait_state;
-
 /* Data to be passed around while handling an event.  This data is
    discarded between events.  */
 struct execution_control_state