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
9befdffb
Commit
9befdffb
authored
31 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Add INVOKE-TTY-DEBUGGER. Don't try to invoke motif debugger if we didn't
succeed in opening a connection.
parent
6cfefb96
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/debug.lisp
+37
-26
37 additions, 26 deletions
interface/debug.lisp
with
37 additions
and
26 deletions
interface/debug.lisp
+
37
−
26
View file @
9befdffb
...
...
@@ -525,27 +525,31 @@
(
multiple-value-bind
(
shell
connection
)
(
create-interface-shell
)
(
declare
(
ignore
shell
))
(
with-motif-connection
(
connection
)
(
let
((
pane
(
find-interface-pane
condition
))
(
*current-frame*
frame
))
(
unless
pane
(
setf
pane
(
create-debugger
condition
)))
(
unless
(
is-managed
pane
)
(
popup-interface-pane
pane
))
(
setf
(
dd-info-level
*current-debug-display*
)
*debug-command-level*
)
(
setf
(
dd-info-connection
*current-debug-display*
)
connection
)
(
unwind-protect
(
handler-case
(
loop
(
system:serve-event
))
(
error
(
err
)
(
if
*flush-debug-errors*
(
interface-error
(
format
nil
"~a"
err
)
pane
)
(
interface-error
"Do not yet support recursive debugging"
pane
))))
(
when
(
and
connection
*current-debug-display*
)
(
with-motif-connection
(
connection
)
(
close-motif-debugger
condition
)))))))))
(
if
connection
(
with-motif-connection
(
connection
)
(
let
((
pane
(
find-interface-pane
condition
))
(
*current-frame*
frame
))
(
unless
pane
(
setf
pane
(
create-debugger
condition
)))
(
unless
(
is-managed
pane
)
(
popup-interface-pane
pane
))
(
setf
(
dd-info-level
*current-debug-display*
)
*debug-command-level*
)
(
setf
(
dd-info-connection
*current-debug-display*
)
connection
)
(
unwind-protect
(
handler-case
(
loop
(
system:serve-event
))
(
error
(
err
)
(
if
*flush-debug-errors*
(
interface-error
(
format
nil
"~a"
err
)
pane
)
(
interface-error
"Do not yet support recursive debugging"
pane
))))
(
when
(
and
connection
*current-debug-display*
)
(
with-motif-connection
(
connection
)
(
close-motif-debugger
condition
))))))
(
invoke-tty-debugger
condition
)))))
...
...
@@ -553,6 +557,17 @@
;;;
(
defvar
*in-windowing-debugger*
nil
)
;;; INVOKE-TTY-DEBUGGER -- Internal
;;;
;;; Print condition and invoke the TTY debugger.
;;;
(
defun
invoke-tty-debugger
(
condition
)
(
format
*error-output*
"~2&~A~2&"
*debug-condition*
)
(
unless
(
typep
condition
'step-condition
)
(
show-restarts
*debug-restarts*
*error-output*
))
(
internal-debug
))
;;; INVOKE-DEBUGGER -- Public
;;;
;;; Invokes the Lisp debugger. It executes some common debugger setup code
...
...
@@ -578,11 +593,7 @@
(
if
(
or
(
not
(
use-graphics-interface
))
*in-windowing-debugger*
(
typep
condition
'xti:toolkit-error
))
(
progn
(
format
*error-output*
"~2&~A~2&"
*debug-condition*
)
(
unless
(
typep
condition
'step-condition
)
(
show-restarts
*debug-restarts*
*error-output*
))
(
internal-debug
))
(
invoke-tty-debugger
condition
)
(
let
((
*in-windowing-debugger*
t
))
(
write-line
"Invoking debugger..."
)
(
invoke-motif-debugger
condition
)))))
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