2004-04-30 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Fri, 30 Apr 2004 14:12:46 +0000 (14:12 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 30 Apr 2004 14:12:46 +0000 (14:12 +0000)
* gdb-events.sh (selected_thread_changed)
(selected_frame_level_changed, target_changed): Delete.
* gdb-events.h, gdb-events.c: Re-generate.
* valops.c (value_assign): Update.
* stack.c (select_frame_command, up_silently_base)
(down_silently_base): Update.

gdb/ChangeLog
gdb/gdb-events.c
gdb/gdb-events.h
gdb/gdb-events.sh
gdb/stack.c
gdb/valops.c

index d20fd2b403e1c3d2a3b72312f7479f0a2285bdac..cd7d3d4ea2b2065d1e8814129e255cc5b61db023 100644 (file)
@@ -1,3 +1,12 @@
+2004-04-30  Andrew Cagney  <cagney@redhat.com>
+
+       * gdb-events.sh (selected_thread_changed)
+       (selected_frame_level_changed, target_changed): Delete.
+       * gdb-events.h, gdb-events.c: Re-generate.
+       * valops.c (value_assign): Update.
+       * stack.c (select_frame_command, up_silently_base)
+       (down_silently_base): Update.
+
 2004-04-29  Andrew Cagney  <cagney@redhat.com>
 
        * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
index 573df1fd45870cea160fb94109fbaf7628fdae17..d61409fffdfa8ab106e068c22d31ef7377dfa325 100644 (file)
@@ -115,36 +115,6 @@ architecture_changed_event (void)
   current_event_hooks->architecture_changed ();
 }
 
-void
-target_changed_event (void)
-{
-  if (gdb_events_debug)
-    fprintf_unfiltered (gdb_stdlog, "target_changed_event\n");
-  if (!current_event_hooks->target_changed)
-    return;
-  current_event_hooks->target_changed ();
-}
-
-void
-selected_frame_level_changed_event (int level)
-{
-  if (gdb_events_debug)
-    fprintf_unfiltered (gdb_stdlog, "selected_frame_level_changed_event\n");
-  if (!current_event_hooks->selected_frame_level_changed)
-    return;
-  current_event_hooks->selected_frame_level_changed (level);
-}
-
-void
-selected_thread_changed_event (int thread_num)
-{
-  if (gdb_events_debug)
-    fprintf_unfiltered (gdb_stdlog, "selected_thread_changed_event\n");
-  if (!current_event_hooks->selected_thread_changed)
-    return;
-  current_event_hooks->selected_thread_changed (thread_num);
-}
-
 struct gdb_events *
 set_gdb_event_hooks (struct gdb_events *vector)
 {
@@ -171,9 +141,6 @@ enum gdb_event
   tracepoint_delete,
   tracepoint_modify,
   architecture_changed,
-  target_changed,
-  selected_frame_level_changed,
-  selected_thread_changed,
   nr_gdb_events
 };
 
@@ -207,16 +174,6 @@ struct tracepoint_modify
     int number;
   };
 
-struct selected_frame_level_changed
-  {
-    int level;
-  };
-
-struct selected_thread_changed
-  {
-    int thread_num;
-  };
-
 struct event
   {
     enum gdb_event type;
@@ -229,8 +186,6 @@ struct event
        struct tracepoint_create tracepoint_create;
        struct tracepoint_delete tracepoint_delete;
        struct tracepoint_modify tracepoint_modify;
-       struct selected_frame_level_changed selected_frame_level_changed;
-       struct selected_thread_changed selected_thread_changed;
       }
     data;
   };
@@ -309,32 +264,6 @@ queue_architecture_changed (void)
   append (event);
 }
 
-static void
-queue_target_changed (void)
-{
-  struct event *event = XMALLOC (struct event);
-  event->type = target_changed;
-  append (event);
-}
-
-static void
-queue_selected_frame_level_changed (int level)
-{
-  struct event *event = XMALLOC (struct event);
-  event->type = selected_frame_level_changed;
-  event->data.selected_frame_level_changed.level = level;
-  append (event);
-}
-
-static void
-queue_selected_thread_changed (int thread_num)
-{
-  struct event *event = XMALLOC (struct event);
-  event->type = selected_thread_changed;
-  event->data.selected_thread_changed.thread_num = thread_num;
-  append (event);
-}
-
 void
 gdb_events_deliver (struct gdb_events *vector)
 {
@@ -383,17 +312,6 @@ gdb_events_deliver (struct gdb_events *vector)
        case architecture_changed:
          vector->architecture_changed ();
          break;
-       case target_changed:
-         vector->target_changed ();
-         break;
-       case selected_frame_level_changed:
-         vector->selected_frame_level_changed
-           (event->data.selected_frame_level_changed.level);
-         break;
-       case selected_thread_changed:
-         vector->selected_thread_changed
-           (event->data.selected_thread_changed.thread_num);
-         break;
        }
       delivering_events = event->next;
       xfree (event);
@@ -412,9 +330,6 @@ _initialize_gdb_events (void)
   queue_event_hooks.tracepoint_delete = queue_tracepoint_delete;
   queue_event_hooks.tracepoint_modify = queue_tracepoint_modify;
   queue_event_hooks.architecture_changed = queue_architecture_changed;
-  queue_event_hooks.target_changed = queue_target_changed;
-  queue_event_hooks.selected_frame_level_changed = queue_selected_frame_level_changed;
-  queue_event_hooks.selected_thread_changed = queue_selected_thread_changed;
 
   c = add_set_cmd ("eventdebug", class_maintenance, var_zinteger,
                   (char *) (&gdb_events_debug), "Set event debugging.\n\
index 7f0d1cb602e73af1da6a1976441492213865a5ca..c8d553021803530490a3479621bcb67720deec07 100644 (file)
@@ -55,9 +55,6 @@ typedef void (gdb_events_tracepoint_create_ftype) (int number);
 typedef void (gdb_events_tracepoint_delete_ftype) (int number);
 typedef void (gdb_events_tracepoint_modify_ftype) (int number);
 typedef void (gdb_events_architecture_changed_ftype) (void);
-typedef void (gdb_events_target_changed_ftype) (void);
-typedef void (gdb_events_selected_frame_level_changed_ftype) (int level);
-typedef void (gdb_events_selected_thread_changed_ftype) (int thread_num);
 
 
 /* gdb-events: object. */
@@ -71,9 +68,6 @@ struct gdb_events
     gdb_events_tracepoint_delete_ftype *tracepoint_delete;
     gdb_events_tracepoint_modify_ftype *tracepoint_modify;
     gdb_events_architecture_changed_ftype *architecture_changed;
-    gdb_events_target_changed_ftype *target_changed;
-    gdb_events_selected_frame_level_changed_ftype *selected_frame_level_changed;
-    gdb_events_selected_thread_changed_ftype *selected_thread_changed;
   };
 
 
@@ -87,9 +81,6 @@ extern void tracepoint_create_event (int number);
 extern void tracepoint_delete_event (int number);
 extern void tracepoint_modify_event (int number);
 extern void architecture_changed_event (void);
-extern void target_changed_event (void);
-extern void selected_frame_level_changed_event (int level);
-extern void selected_thread_changed_event (int thread_num);
 
 /* Install custom gdb-events hooks. */
 extern struct gdb_events *set_gdb_event_hooks (struct gdb_events *vector);
index e1e26ac20c8c62dc16c53ca35cc50c1bd7f96df0..c16a8990327e82a93cc944653d4f898de339781f 100755 (executable)
@@ -47,9 +47,6 @@ f:void:tracepoint_create:int number:number
 f:void:tracepoint_delete:int number:number
 f:void:tracepoint_modify:int number:number
 f:void:architecture_changed:void
-f:void:target_changed:void
-f:void:selected_frame_level_changed:int level:level
-f:void:selected_thread_changed:int thread_num:thread_num
 EOF
   grep -v '^#'
 }
index ce1b7b18087a089fc8d7835dbd406ee022de3d85..799232a46bccbbe6c3ea98dd426a325efffbeea7 100644 (file)
@@ -1703,8 +1703,6 @@ select_frame_command (char *level_exp, int from_tty)
   frame = parse_frame_specification (level_exp);
 
   select_frame (frame);
-  if (level != frame_relative_level (deprecated_selected_frame))
-    selected_frame_level_changed_event (frame_relative_level (deprecated_selected_frame));
 }
 
 /* The "frame" command.  With no arg, print selected frame briefly.
@@ -1747,7 +1745,6 @@ up_silently_base (char *count_exp)
   if (count1 != 0 && count_exp == 0)
     error ("Initial frame selected; you cannot go up.");
   select_frame (fi);
-  selected_frame_level_changed_event (frame_relative_level (deprecated_selected_frame));
 }
 
 static void
@@ -1791,7 +1788,6 @@ down_silently_base (char *count_exp)
     }
 
   select_frame (frame);
-  selected_frame_level_changed_event (frame_relative_level (deprecated_selected_frame));
 }
 
 static void
index 5ab41496e95c3092d38d84779baea44da6befcf6..c638c91d564223f961c09dcad6a66edb497f186f 100644 (file)
@@ -609,7 +609,6 @@ value_assign (struct value *toval, struct value *fromval)
        write_memory (changed_addr, dest_buffer, changed_len);
        if (deprecated_memory_changed_hook)
          deprecated_memory_changed_hook (changed_addr, changed_len);
-       target_changed_event ();
       }
       break;
 
@@ -701,7 +700,6 @@ value_assign (struct value *toval, struct value *fromval)
          }
        if (deprecated_register_changed_hook)
          deprecated_register_changed_hook (-1);
-       target_changed_event ();
        observer_notify_target_changed (&current_target);
        break;
       }