aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2000-11-27 19:53:35 +0000
committerStephane Carrez <stcarrez@nerim.fr>2000-11-27 19:53:35 +0000
commit4e73b9c108addafbb3f7499b4e529854d496d5e4 (patch)
tree8c6f338e4d3fd5228dddadf6584924c9431eae60 /sim
parentce9bc8d1f1e1f12d31f85fc55820ecd0436f4eed (diff)
downloadgdb-4e73b9c108addafbb3f7499b4e529854d496d5e4.zip
gdb-4e73b9c108addafbb3f7499b4e529854d496d5e4.tar.gz
gdb-4e73b9c108addafbb3f7499b4e529854d496d5e4.tar.bz2
Fix delete_hw_event_data() to free the scheduled events
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/hw-events.c5
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);
}