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
5dd2ef64
Commit
5dd2ef64
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Search the CMUCLLIB search path for the core file instead of always
assuming that /usr/misc/.cmucl/lib is going to hold it.
parent
c0c1a60b
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
ldb/ldb.c
+33
-3
33 additions, 3 deletions
ldb/ldb.c
with
33 additions
and
3 deletions
ldb/ldb.c
+
33
−
3
View file @
5dd2ef64
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/ldb.c,v 1.1
3
1991/0
5/24 17:52:21
wlott Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/ldb.c,v 1.1
4
1991/0
9/04 15:35:16
wlott Exp $ */
/* Lisp kernel core debugger */
/* Lisp kernel core debugger */
#include
<stdio.h>
#include
<stdio.h>
#include
<sys/types.h>
#include
<sys/types.h>
#include
<sys/file.h>
#include
<sys/file.h>
#include
<sys/param.h>
#include
<sys/stat.h>
#include
"ldb.h"
#include
"ldb.h"
#include
"lisp.h"
#include
"lisp.h"
...
@@ -69,8 +71,36 @@ char *envp[];
...
@@ -69,8 +71,36 @@ char *envp[];
}
}
}
}
if
(
core
==
NULL
)
/* Note: the /usr/misc/.cmucl/lib/ default path is also wired into */
core
=
"/usr/misc/.cmucl/lib/lisp.core"
;
/* the lisp code in .../code/save.lisp. */
if
(
core
==
NULL
)
{
extern
char
*
getenv
();
char
*
lib
=
getenv
(
"CMUCLLIB"
);
if
(
lib
==
NULL
)
core
=
"/usr/misc/.cmucl/lib/lisp.core"
;
else
{
static
char
buf
[
MAXPATHLEN
];
char
*
dst
;
struct
stat
statbuf
;
do
{
dst
=
buf
;
while
(
*
lib
!=
'\0'
&&
*
lib
!=
':'
)
*
dst
++
=
*
lib
++
;
if
(
dst
!=
buf
&&
dst
[
-
1
]
!=
'/'
)
*
dst
++
=
'/'
;
strcpy
(
dst
,
"lisp.core"
);
if
(
stat
(
buf
,
&
statbuf
)
==
0
)
{
core
=
buf
;
break
;
}
}
while
(
*
lib
++
==
':'
);
if
(
core
==
NULL
)
core
=
"/usr/misc/.cmucl/lib/lisp.core"
;
}
}
arch_init
();
arch_init
();
os_init
();
os_init
();
...
...
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