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 /sim/common/hw-events.c | |
parent | ce9bc8d1f1e1f12d31f85fc55820ecd0436f4eed (diff) | |
download | binutils-gdb-4e73b9c108addafbb3f7499b4e529854d496d5e4.tar.gz |
Fix delete_hw_event_data() to free the scheduled events
Diffstat (limited to 'sim/common/hw-events.c')
-rw-r--r-- | sim/common/hw-events.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c index f60dfa32e6a..243a7aae712 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); } |