]> sourceware.org Git - cgen.git/commit
Add -t option for tracing things like commands, pmacro expansion.
authorDoug Evans <xdje42@gmail.com>
Fri, 7 Aug 2009 21:29:20 +0000 (21:29 +0000)
committerDoug Evans <xdje42@gmail.com>
Fri, 7 Aug 2009 21:29:20 +0000 (21:29 +0000)
commit13b7ac62dd9589b993e60863b68f3a7e2cdcac18
tree69010f41e98759d5abb6a1b44d06f83f668675e9
parent4362ffe0a88274bba8b7c98b6416e5bb1218b68c
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.
ChangeLog
dev.scm
doc/running.texi
pmacros.scm
read.scm
utils-cgen.scm
utils.scm
This page took 0.029004 seconds and 5 git commands to generate.