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
c3946c92
Commit
c3946c92
authored
35 years ago
by
ch
Browse files
Options
Downloads
Patches
Plain Diff
Added backtrace.
parent
571cdb62
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ldb/Makefile.orig
+2
-2
2 additions, 2 deletions
ldb/Makefile.orig
ldb/monitor.c
+19
-1
19 additions, 1 deletion
ldb/monitor.c
with
21 additions
and
3 deletions
ldb/Makefile.orig
+
2
−
2
View file @
c3946c92
# $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/Makefile.orig,v 1.
7
1990/0
3/29 21:17:49
ch Exp $
# $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/Makefile.orig,v 1.
8
1990/0
4/04 18:26:15
ch Exp $
CFLAGS
=
-g
OBJS
=
ldb.o egets.o coreparse.o alloc.o monitor.o print.o
\
os.o vars.o assem.o parse.o interrupt.o test.o
\
search.o validate.o gc.o globals.o dynbind.o
\
regnames.o
regnames.o
backtrace.o
ldb.map
:
ldb
echo
-n
'Map file for ldb version '
>
ldb.map
...
...
This diff is collapsed.
Click to expand it.
ldb/monitor.c
+
19
−
1
View file @
c3946c92
...
...
@@ -16,6 +16,7 @@
static
void
call_cmd
(),
dump_cmd
(),
print_cmd
(),
quit
(),
help
();
static
void
flush_cmd
(),
search_cmd
(),
regs_cmd
(),
exit_cmd
(),
throw_cmd
();
static
void
timed_call_cmd
(),
gc_cmd
(),
print_context_cmd
();
static
void
backtrace_cmd
();
static
struct
cmd
{
char
*
cmd
,
*
help
;
...
...
@@ -23,6 +24,7 @@ static struct cmd {
}
Cmds
[]
=
{
{
"help"
,
"Display this info"
,
help
},
{
"?"
,
NULL
,
help
},
{
"backtrace"
,
"backtrace up to N frames"
,
backtrace_cmd
},
{
"call"
,
"call FUNCTION with ARG1, ARG2, ..."
,
call_cmd
},
{
"context"
,
"print interrupt context number I."
,
print_context_cmd
},
{
"dump"
,
"dump memory starting at ADDRESS for COUNT words."
,
dump_cmd
},
...
...
@@ -376,12 +378,13 @@ struct sigcontext *context;
static
void
print_context_cmd
(
ptr
)
char
**
ptr
;
{
int
index
;
int
free
;
free
=
SymbolValue
(
FREE_INTERRUPT_CONTEXT_INDEX
)
>>
2
;
if
(
more_p
(
ptr
))
{
int
index
;
index
=
parse_number
(
ptr
);
if
((
index
>=
0
)
&&
(
index
<
free
))
{
...
...
@@ -403,6 +406,21 @@ char **ptr;
}
}
static
void
backtrace_cmd
(
ptr
)
char
**
ptr
;
{
void
backtrace
();
int
n
;
if
(
more_p
(
ptr
))
n
=
parse_number
(
ptr
);
else
n
=
100
;
printf
(
"Backtrace:
\n
"
);
backtrace
(
n
);
}
static
void
sub_monitor
(
csp
,
bsp
)
lispobj
*
csp
,
*
bsp
;
{
...
...
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