aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-events.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdb-events.c')
-rw-r--r--gdb/gdb-events.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c
index 573df1f..d61409f 100644
--- a/gdb/gdb-events.c
+++ b/gdb/gdb-events.c
@@ -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\