Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
eb2260df
Commit
eb2260df
authored
33 years ago
by
chiles
Browse files
Options
Downloads
Patches
Plain Diff
Eliminated some silly shit, so William could compile this file to build a new RT system.
parent
248cb692
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hemlock/debug.lisp
+35
-44
35 additions, 44 deletions
hemlock/debug.lisp
with
35 additions
and
44 deletions
hemlock/debug.lisp
+
35
−
44
View file @
eb2260df
...
...
@@ -6,10 +6,8 @@
;;; If you want to use this code or any part of CMU Common Lisp, please contact
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
#|
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/hemlock/debug.lisp,v 1.2 1991/05/29 11:40:48 chiles Exp $")
|#
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/hemlock/debug.lisp,v 1.3 1991/06/13 15:05:31 chiles Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -23,7 +21,7 @@
;;;;
Commands for slave buffers
.
;;;;
DEFINE-DEBUGGER-COMMAND
.
(
defmacro
define-debugger-command
(
name
doc
cmd
&key
uses-argument
)
`
(
defcommand
,
(
concatenate
'simple-string
"Debug "
name
)
(
p
)
...
...
@@ -41,9 +39,9 @@
cmd
)))
(
wire:wire-force-output
wire
))))
;;;
;;; Frame changing commands.
;;;
;;;
; Frame changing commands.
(
define-debugger-command
"Up"
"Moves the \"Current Eval Server\" up one debugger frame."
...
...
@@ -67,9 +65,9 @@
:frame
:uses-argument
t
)
;;;
;;; In and Out commands.
;;;
;;;
; In and Out commands.
(
define-debugger-command
"Quit"
"In the \"Current Eval Server\", throws to top level out of the debugger."
...
...
@@ -89,9 +87,9 @@
:restart
:uses-argument
t
)
;;;
;;; Information commands.
;;;
;;;
; Information commands.
(
define-debugger-command
"Help"
"In the \"Current Eval Server\", prints the debugger's help text."
...
...
@@ -121,9 +119,6 @@
current frame."
:list-locals
)
;;; This should probably take you to the source in the editor.
;;; Maybe split the windows?
;;;
(
define-debugger-command
"Source"
"In the \"Current Eval Server\", prints the source form for the debugger's
current frame."
...
...
@@ -134,33 +129,16 @@
current frame with surrounding forms for context."
:vsource
)
;;; Okay, the :edit-source command in the debugger initiates a synchronous RPC
;;; into the editor via the wire in *termina-io*, a typescript stream. This
;;; routine takes the necessary values, a file and source-path, and changes
;;; the editor's state to edit that.
;;;
;;; This command has to wait on SERVE-EVENT until some special is set by the
;;; RPC routine saying it is okay to return to the editor's top level.
;;;
(
defcommand
"Debug Edit Source"
(
p
)
"Give the \"Current Eval Server\"'s current debugger frame, place the user
at the location's source in the editor."
"Give the \"Current Eval Server\"'s current debugger frame, place the user
at the location's source in the editor."
(
declare
(
ignore
p
))
(
let*
((
server-info
(
get-current-eval-server
t
))
(
wire
(
server-info-wire
server-info
)))
(
wire:remote
wire
(
ts-stream-accept-input
(
ts-data-stream
(
server-info-slave-info
server-info
))
:edit-source
))
(
wire:wire-force-output
wire
)))
)
;;;; Source editing.
;;; Okay, the :edit-source command in the slave debugger initiates a
;;; synchronous RPC into the editor via the wire in *termina-io*, a typescript
;;; stream. This routine takes the necessary values, a file and source-path,
;;; and changes the editor's state to edit that.
;;; "Debug Edit Source" -- Command.
;;;
;;; The :edit-source command in the slave debugger initiates a synchronous RPC
;;; into the editor via the wire in *terminal-io*, a typescript stream. This
;;; routine takes the necessary values, a file and source-path, and changes the
;;; editor's state to display that location.
;;;
;;; This command has to wait on SERVE-EVENT until some special is set by the
;;; RPC routine saying it is okay to return to the editor's top level.
...
...
@@ -292,9 +270,22 @@
(
defun
cannot-edit-source-location
()
(
throw
'editor-top-level
nil
))
;;;
;;; Miscellaneous commands.
;;;
#|
(defcommand "Debug Breakpoint" (p)
"This tries to set a breakpoint in the \"Current Eval Server\" at the
location designated by the current point. If there is no known code
location at the point, then this moves the point to the closest location
before the point."
"This tries to set a breakpoint in the \"Current Eval Server\" at the
location designated by the current point. If there is no known code
location at the point, then this moves the point to the closest location
before the point."
(declare (ignore p))
(with-mark ((m (current-point)))
(
|#
;;;; Miscellaneous commands.
(
define-debugger-command
"Flush Errors"
"In the \"Current Eval Server\", toggles whether the debugger ignores errors
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment