Add a printf fmt style version of sim_events_schedule.
authorAndrew Cagney <cagney@redhat.com>
Wed, 8 Jul 1998 08:00:36 +0000 (08:00 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 8 Jul 1998 08:00:36 +0000 (08:00 +0000)
This allows the caller to specify extra trace information that is
only evaluated when tracing is enabled.

sim/common/ChangeLog

index 0000df4a936db4907347093f9f3163a46ee1e4b7..bf64f2e5b9e53630651e90c12f23708b4e610583 100644 (file)
@@ -1,3 +1,18 @@
+Wed Jul  8 17:41:47 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-events.c (ETRACE_P): New macro.
+       (struct _sim_event): Add member trace.
+       (sim_events_free): Reclaim trace message.
+
+       * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
+       sim_events_schedule_tracef): New functions, include printf trace
+       information in argument list.  If tracing, store asprintf'd trace
+       message in sim_event.
+
+       * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
+       hw_event_queue_schedule_vtracef): New functions, mimic
+       sim_event_tracef.
+
 Mon Jul  6 15:51:14 1998  Jeffrey A Law  (law@cygnus.com)
 
        * sim-bits.h (EXTEND24): Define.