diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-28 05:59:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-28 05:59:25 +0000 |
commit | 25d704f304309dd7585e734823d43071a6c558e5 (patch) | |
tree | 20e55136900a2eb4612cbb44ef6b42adc77ef567 /sim/ppc/events.c | |
parent | 1bd54964ac860e975e1e76d2398f48d01beb5feb (diff) | |
download | gdb-25d704f304309dd7585e734823d43071a6c558e5.zip gdb-25d704f304309dd7585e734823d43071a6c558e5.tar.gz gdb-25d704f304309dd7585e734823d43071a6c558e5.tar.bz2 |
Cleanup tracing.
Diffstat (limited to 'sim/ppc/events.c')
-rw-r--r-- | sim/ppc/events.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/sim/ppc/events.c b/sim/ppc/events.c index 8384622..5743ffd 100644 --- a/sim/ppc/events.c +++ b/sim/ppc/events.c @@ -161,6 +161,24 @@ update_time_from_event(event_queue *events) events->time_of_event = current_time - 1; events->time_from_event = -1; } + if (WITH_TRACE && ppc_trace[trace_events]) + { + event_entry *event; + int i; + for (event = events->queue, i = 0; + event != NULL; + event = event->next, i++) + { + TRACE(trace_events, ("event time-from-event - time %ld, delta %ld - event %d, tag 0x%lx, time %ld, handler 0x%lx, data 0x%lx\n", + (long)current_time, + (long)events->time_from_event, + i, + (long)event, + (long)event->time_of_event, + (long)event->handler, + (long)event->data)); + } + } ASSERT(current_time == event_queue_time(events)); ASSERT((events->time_from_event >= 0) == (events->queue != NULL)); } @@ -369,9 +387,10 @@ event_queue_process(event_queue *events) event_handler *handler = to_do->handler; void *data = to_do->data; events->queue = to_do->next; - TRACE(trace_events, ("event issued at %ld - tag 0x%lx - handler 0x%lx, data 0x%lx\n", + TRACE(trace_events, ("event issued at %ld - tag 0x%lx - time %ld, handler 0x%lx, data 0x%lx\n", (long)event_time, (long)to_do, + (long)to_do->time_of_event, (long)handler, (long)data)); zfree(to_do); |