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 | fec5b3ae3fb9e219dffdfcd850c0f087a74635d9 (patch) | |
tree | 4f81c224cb0d4248a81c102a4076e15d05df5a5d /sim | |
parent | 772ae5b8fff9130a33ab637435044ecca4d8f4fa (diff) | |
download | gdb-fec5b3ae3fb9e219dffdfcd850c0f087a74635d9.tar.gz |
Provide more detailed traces of the event queue.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-events.c | 21 |
2 files changed, 26 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index bc0e35d5056..43462140a08 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com> + + * sim-events.c (update_time_from_event): Add more detailed event + tracing. + 2000-03-30 Dave Brolley <brolley@redhat.com> * aclocal.m4 (cgen): Use guile to run cgen. diff --git a/sim/common/sim-events.c b/sim/common/sim-events.c index fc211644e85..fa294a7e147 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)); } |