diff options
author | Keith Seitz <keiths@redhat.com> | 2002-08-26 19:41:56 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2002-08-26 19:41:56 +0000 |
commit | 55970da69c7cafed0c307890835bce67a8a41434 (patch) | |
tree | 845f816f424dbbe805633107447f5450e64305ba /gdb/gdb-events.c | |
parent | 1533ce99dd9a44bccb0ca82f534590d62e343a28 (diff) | |
download | gdb-55970da69c7cafed0c307890835bce67a8a41434.zip gdb-55970da69c7cafed0c307890835bce67a8a41434.tar.gz gdb-55970da69c7cafed0c307890835bce67a8a41434.tar.bz2 |
* gdb-events.sh: Add selected-frame-level-changed event.
* gdb-events.c: Regenerated.
* gdb-events.h: Regenerated.
Diffstat (limited to 'gdb/gdb-events.c')
-rw-r--r-- | gdb/gdb-events.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c index 3acccf1..e32d0e4 100644 --- a/gdb/gdb-events.c +++ b/gdb/gdb-events.c @@ -129,6 +129,16 @@ target_changed_event (void) 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); +} + #endif #if WITH_GDB_EVENTS @@ -162,6 +172,7 @@ enum gdb_event tracepoint_modify, architecture_changed, target_changed, + selected_frame_level_changed, nr_gdb_events }; @@ -195,6 +206,11 @@ struct tracepoint_modify int number; }; +struct selected_frame_level_changed + { + int level; + }; + struct event { enum gdb_event type; @@ -207,6 +223,7 @@ 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; } data; }; @@ -293,6 +310,15 @@ queue_target_changed (void) 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); +} + void gdb_events_deliver (struct gdb_events *vector) { @@ -344,6 +370,10 @@ gdb_events_deliver (struct gdb_events *vector) 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; } delivering_events = event->next; xfree (event); @@ -364,6 +394,7 @@ _initialize_gdb_events (void) 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; #endif c = add_set_cmd ("eventdebug", class_maintenance, var_zinteger, |