Add hooks for the compiled code debugger.
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Wed, 9 Dec 1987 21:51:55 +0000 (21:51 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Wed, 9 Dec 1987 21:51:55 +0000 (21:51 +0000)
v7/src/runtime/debug.scm

index aa204b77cb8d46f4b5b9fe277a8160724a99dc46..b3c03dd11c021b8ae0f198b665b74d52a6902c4c 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/debug.scm,v 13.44 1987/12/05 16:40:13 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/debug.scm,v 13.45 1987/12/09 21:51:55 jinx Exp $
 ;;;
 ;;;    Copyright (c) 1987 Massachusetts Institute of Technology
 ;;;
 
 (define-debug-command #\X internal-command
   "Create a read eval print loop in the debugger environment")
+
+(define debug-compiled-continuation false)
+
+(define (debug-compiled)
+  (if debug-compiled-continuation
+      (debug-compiled-continuation current-continuation)
+      (begin (beep)
+            (format "~%The compiled code debugger is not present in this system."))))
+
+(define-debug-command #\A debug-command
+  "Invoke the compiled code debugger on the current continuation")
 \f
 ;;;; Reduction and continuation motion low-level