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
b06e9dc1
Commit
b06e9dc1
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
CONT -> FP.
parent
300b7156
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
code/debug.lisp
+5
-5
5 additions, 5 deletions
code/debug.lisp
with
5 additions
and
5 deletions
code/debug.lisp
+
5
−
5
View file @
b06e9dc1
...
@@ -143,13 +143,13 @@ Functions/macros for your enjoyment:
...
@@ -143,13 +143,13 @@ Functions/macros for your enjoyment:
(*standard-output* *debug-io*))
(*standard-output* *debug-io*))
"
Show
a
listing
of
the
call
stack
going
down
from
the
current
frame.
Frames
"
Show
a
listing
of
the
call
stack
going
down
from
the
current
frame.
Frames
is
how
many
frames
to
show.
"
is
how
many
frames
to
show.
"
(do ((callee (%primitive current-
cont
)
(do ((callee (%primitive current-
fp
)
(stack-ref callee c::old-
cont
-save-offset))
(stack-ref callee c::old-
fp
-save-offset))
(n 0 (1+ n)))
(n 0 (1+ n)))
((or (not (cstack-pointer-valid-p callee))
((or (not (cstack-pointer-valid-p callee))
(>= n frames))
(>= n frames))
(values))
(values))
(let* ((caller (stack-ref callee c::old-
cont
-save-offset))
(let* ((caller (stack-ref callee c::old-
fp
-save-offset))
(pc (stack-ref callee c::return-pc-save-offset)))
(pc (stack-ref callee c::return-pc-save-offset)))
(unless (cstack-pointer-valid-p caller)
(unless (cstack-pointer-valid-p caller)
(return (values)))
(return (values)))
...
@@ -162,7 +162,7 @@ Functions/macros for your enjoyment:
...
@@ -162,7 +162,7 @@ Functions/macros for your enjoyment:
(escape-reg caller c::call-name-offset))
(escape-reg caller c::call-name-offset))
(setq callee
(setq callee
(check-valid
(check-valid
(escape-reg caller c::old-
cont
-offset))))
(escape-reg caller c::old-
fp
-offset))))
((valid-env-p env)
((valid-env-p env)
(format t "
~%<escape
frame>
")
(format t "
~%<escape
frame>
")
(print-code-and-stuff
(print-code-and-stuff
...
@@ -170,7 +170,7 @@ Functions/macros for your enjoyment:
...
@@ -170,7 +170,7 @@ Functions/macros for your enjoyment:
(escape-reg caller c::return-pc-offset))
(escape-reg caller c::return-pc-offset))
(setq callee
(setq callee
(check-valid
(check-valid
(stack-ref callee c::old-
cont
-save-offset))))
(stack-ref callee c::old-
fp
-save-offset))))
(t
(t
(error "
Escaping
frame
ENV
invalid?
")))))
(error "
Escaping
frame
ENV
invalid?
")))))
((valid-env-p env)
((valid-env-p env)
...
...
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