diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-28 06:13:46 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-28 06:13:46 +0000 |
commit | 5eb1a8fac3a063d2ea5439a99be88a0c6cadce4e (patch) | |
tree | 8776bd876bd01760e6d704034402a42906eeb3d8 /sim/common/sim-events.c | |
parent | 0c22be818ba91eba45f8930752fb7dada13c9f78 (diff) | |
download | gdb-5eb1a8fac3a063d2ea5439a99be88a0c6cadce4e.zip gdb-5eb1a8fac3a063d2ea5439a99be88a0c6cadce4e.tar.gz gdb-5eb1a8fac3a063d2ea5439a99be88a0c6cadce4e.tar.bz2 |
Provide more detailed traces of the event queue.
Diffstat (limited to 'sim/common/sim-events.c')
-rw-r--r-- | sim/common/sim-events.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sim/common/sim-events.c b/sim/common/sim-events.c index fc21164..fa294a7 100644 --- a/sim/common/sim-events.c +++ b/sim/common/sim-events.c @@ -395,6 +395,27 @@ update_time_from_event (SIM_DESC sd) events->time_of_event = current_time - 1; events->time_from_event = -1; } + if (ETRACE_P) + { + sim_event *event; + int i; + for (event = events->queue, i = 0; + event != NULL; + event = event->next, i++) + { + ETRACE ((_ETRACE, + "event time-from-event - time %ld, delta %ld - event %d, tag 0x%lx, time %ld, handler 0x%lx, data 0x%lx%s%s\n", + (long)current_time, + (long)events->time_from_event, + i, + (long)event, + (long)event->time_of_event, + (long)event->handler, + (long)event->data, + (event->trace != NULL) ? ", " : "", + (event->trace != NULL) ? event->trace : "")); + } + } SIM_ASSERT (current_time == sim_events_time (sd)); } |