OSDN Git Service

Make backtraces work more reliably.
authorjimb <jimb>
Tue, 15 Feb 2005 09:01:49 +0000 (09:01 +0000)
committerjimb <jimb>
Tue, 15 Feb 2005 09:01:49 +0000 (09:01 +0000)
commit1d059335b9a35bec7310e9cbd347edf9c0026fce
treebe6e945057bb335a56bd2995486a1034a7f3ac12
parent91d5a88929a6fd3be826d51b2e40fd27b7b36a5c
Make backtraces work more reliably.
* guile.scm: Set up debugging parameters, and enable debugging and
source positions while loading.
(cgen-call-with-debugging, cgen-debugging-stack-start): New
functions.
* read.scm: Don't set debugging parameters here.
(catch-with-backtrace): Function deleted.
(-cgen): Simply note the presence or absence of the -b option.
Pass the flag to cgen-call-with-debugging, so debugging is turned
off here if the user didn't request it, for faster computation.
(cgen): Call cgen-debugging-stack-start here, instead of
catch-with-backtrace.

* Makefile.am (GUILE): Explicitly load guile.scm here, and leave a
trailing -s.
(desc, html, opcodes, sim-arch, sim-cpu, gas-test, sim-test):
Don't write out the trailing -s here.
* Makefile.in: Regenerated.
* cgen-doc.scm, cgen-gas.scm, cgen-stest.scm): Don't load
fixup.scm here; let the caller decide which Scheme's customization
file to preload.
* dev.scm: Load guile.scm, not fixup.scm.
* fixup.scm: Deleted; contents have all moved to guile.scm.
* README: Doc fix.

* guile.scm (debug-write): New function.
cgen/doc/Makefile.in