* tracing commands, pmacros
@ 2009-08-07 21:33 Doug Evans
0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2009-08-07 21:33 UTC (permalink / raw)
To: cgen
Hi.
fyi,
I checked in a patch to add a -t option to allow tracing of commands
and pmacros.
E.g.
cd obj/opcodes
make stamp-m32r CGENFLAGS='-v -b -t all'
2009-08-07 Doug Evans <dje@sebabeach.org>
Add -t option for tracing things like commands, pmacro expansion.
* dev.scm (cload): New arg #:trace.
* pmacros.scm (-pmacro-expand): Rewrite pmacro tracing.
(pmacro-trace): New arg `loc'. Rewrite pmacro tracing.
(pmacro-debug): Call pmacro-trace instead of -pmacro-expand.
* read.scm (<reader>): New members trace-commands?, trace-pmacros?.
(-reader-process-expanded-1!): Trace commands if requested.
(-reader-process!): Call pmacro-trace of pmacro tracing requested.
(-set-trace-options!): New function.
(-init-reader!): New function.
(cpu-load): New arg trace-options, all callers updated.
Call -init-reader! and -set-trace-options!.
(cgen-usage): Improve output formatting.
(common-arguments): New option -t.
(-cgen): Process -t.
* utils-cgen.scm (single-location->string): Renamed from
pretty-print-single-location. All callers updated.
(location->string): Renamed from pretty-print-location.
All callers updated.
(source-properties-location->string): New function.
* doc/running.texi: Document -t.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-07 21:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07 21:33 tracing commands, pmacros Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).