diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2000-11-27 19:53:35 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2000-11-27 19:53:35 +0000 |
commit | 4e73b9c108addafbb3f7499b4e529854d496d5e4 (patch) | |
tree | 8c6f338e4d3fd5228dddadf6584924c9431eae60 | |
parent | ce9bc8d1f1e1f12d31f85fc55820ecd0436f4eed (diff) | |
download | gdb-4e73b9c108addafbb3f7499b4e529854d496d5e4.zip gdb-4e73b9c108addafbb3f7499b4e529854d496d5e4.tar.gz gdb-4e73b9c108addafbb3f7499b4e529854d496d5e4.tar.bz2 |
Fix delete_hw_event_data() to free the scheduled events
-rw-r--r-- | sim/common/ChangeLog | 4 | ||||
-rw-r--r-- | sim/common/hw-events.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index ec478ab..362d951 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,9 @@ 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr> + * hw-events.c (delete_hw_event_data): Remove the scheduled events. + +2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr> + * dv-core.c (dv_core_attach_address_callback): Don't abort if space is not zero. diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c index f60dfa3..243a7aa 100644 --- a/sim/common/hw-events.c +++ b/sim/common/hw-events.c @@ -51,8 +51,9 @@ create_hw_event_data (struct hw *me) void delete_hw_event_data (struct hw *me) { - if (me->events_of_hw != NULL) - hw_abort (me, "stray events"); + /* Remove the scheduled event. */ + while (me->events_of_hw) + hw_event_queue_deschedule (me, &me->events_of_hw->event); } |