diff options
author | Keith Seitz <keiths@redhat.com> | 2002-08-21 15:34:36 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2002-08-21 15:34:36 +0000 |
commit | e23792ccb6d6b4e8e30e5702eaacfd5556e4ac6e (patch) | |
tree | 0613faf51d12e9373fad1f698198cd01acc302e7 /gdb/gdb-events.c | |
parent | 9fb14e79f9f0322189fb5a2ea17f9819d44fced6 (diff) | |
download | gdb-e23792ccb6d6b4e8e30e5702eaacfd5556e4ac6e.zip gdb-e23792ccb6d6b4e8e30e5702eaacfd5556e4ac6e.tar.gz gdb-e23792ccb6d6b4e8e30e5702eaacfd5556e4ac6e.tar.bz2 |
* gdb-events.sh: Add target-changed event.
* gdb-events.c: Regenerated.
* gdb-events.c: Regenerated.
* valops.c (value_assign): Add target-changed event notification
to inlval_register, lval_memory, and lval_reg_frame_relative.
Diffstat (limited to 'gdb/gdb-events.c')
-rw-r--r-- | gdb/gdb-events.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c index 0912e65..3acccf1 100644 --- a/gdb/gdb-events.c +++ b/gdb/gdb-events.c @@ -119,6 +119,16 @@ 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 (); +} + #endif #if WITH_GDB_EVENTS @@ -151,6 +161,7 @@ enum gdb_event tracepoint_delete, tracepoint_modify, architecture_changed, + target_changed, nr_gdb_events }; @@ -274,6 +285,14 @@ queue_architecture_changed (void) append (event); } +static void +queue_target_changed (void) +{ + struct event *event = XMALLOC (struct event); + event->type = target_changed; + append (event); +} + void gdb_events_deliver (struct gdb_events *vector) { @@ -322,6 +341,9 @@ gdb_events_deliver (struct gdb_events *vector) case architecture_changed: vector->architecture_changed (); break; + case target_changed: + vector->target_changed (); + break; } delivering_events = event->next; xfree (event); @@ -341,6 +363,7 @@ _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; #endif c = add_set_cmd ("eventdebug", class_maintenance, var_zinteger, |