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
9bd7fbd4
Commit
9bd7fbd4
authored
32 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Changed arch_init to return the default core name to use, or NULL for the
default default of "lisp.core".
parent
c00dd64b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ldb/arch.h
+1
-1
1 addition, 1 deletion
ldb/arch.h
ldb/ldb.c
+13
-10
13 additions, 10 deletions
ldb/ldb.c
ldb/mips-arch.c
+2
-1
2 additions, 1 deletion
ldb/mips-arch.c
ldb/sparc-arch.c
+2
-1
2 additions, 1 deletion
ldb/sparc-arch.c
with
18 additions
and
13 deletions
ldb/arch.h
+
1
−
1
View file @
9bd7fbd4
#ifndef __ARCH_H__
#ifndef __ARCH_H__
#define __ARCH_H__
#define __ARCH_H__
extern
void
arch_init
();
extern
char
*
arch_init
();
extern
void
arch_skip_instruction
();
extern
void
arch_skip_instruction
();
extern
os_vm_address_t
arch_get_bad_addr
();
extern
os_vm_address_t
arch_get_bad_addr
();
...
...
This diff is collapsed.
Click to expand it.
ldb/ldb.c
+
13
−
10
View file @
9bd7fbd4
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/ldb.c,v 1.1
7
1992/0
3
/2
2
2
0:02:40
wlott Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/ldb.c,v 1.1
8
1992/0
4
/2
8
2
1:37:25
wlott Exp $ */
/* Lisp kernel core debugger */
/* Lisp kernel core debugger */
#include
<stdio.h>
#include
<stdio.h>
...
@@ -44,7 +44,7 @@ char *argv[];
...
@@ -44,7 +44,7 @@ char *argv[];
char
*
envp
[];
char
*
envp
[];
{
{
char
*
arg
,
**
argptr
;
char
*
arg
,
**
argptr
;
char
*
core
=
NULL
;
char
*
core
=
NULL
,
*
default_core
;
boolean
restore_state
,
monitor
;
boolean
restore_state
,
monitor
;
number_stack_start
=
(
char
*
)
&
monitor
;
number_stack_start
=
(
char
*
)
&
monitor
;
...
@@ -71,17 +71,19 @@ char *envp[];
...
@@ -71,17 +71,19 @@ char *envp[];
}
}
}
}
default_core
=
arch_init
();
if
(
default_core
==
NULL
)
default_core
=
"lisp.core"
;
/* Note: the /usr/misc/.cmucl/lib/ default path is also wired into */
/* Note: the /usr/misc/.cmucl/lib/ default path is also wired into */
/* the lisp code in .../code/save.lisp. */
/* the lisp code in .../code/save.lisp. */
if
(
core
==
NULL
)
{
if
(
core
==
NULL
)
{
static
char
buf
[
MAXPATHLEN
];
extern
char
*
getenv
();
extern
char
*
getenv
();
char
*
lib
=
getenv
(
"CMUCLLIB"
);
char
*
lib
=
getenv
(
"CMUCLLIB"
);
if
(
lib
==
NULL
)
if
(
lib
!=
NULL
)
{
core
=
"/usr/misc/.cmucl/lib/lisp.core"
;
else
{
static
char
buf
[
MAXPATHLEN
];
char
*
dst
;
char
*
dst
;
struct
stat
statbuf
;
struct
stat
statbuf
;
...
@@ -91,18 +93,19 @@ char *envp[];
...
@@ -91,18 +93,19 @@ char *envp[];
*
dst
++
=
*
lib
++
;
*
dst
++
=
*
lib
++
;
if
(
dst
!=
buf
&&
dst
[
-
1
]
!=
'/'
)
if
(
dst
!=
buf
&&
dst
[
-
1
]
!=
'/'
)
*
dst
++
=
'/'
;
*
dst
++
=
'/'
;
strcpy
(
dst
,
"lisp.
core
"
);
strcpy
(
dst
,
default_
core
);
if
(
stat
(
buf
,
&
statbuf
)
==
0
)
{
if
(
stat
(
buf
,
&
statbuf
)
==
0
)
{
core
=
buf
;
core
=
buf
;
break
;
break
;
}
}
}
while
(
*
lib
++
==
':'
);
}
while
(
*
lib
++
==
':'
);
if
(
core
==
NULL
)
}
core
=
"/usr/misc/.cmucl/lib/lisp.core"
;
if
(
core
==
NULL
)
{
strcpy
(
buf
,
"/usr/misc/.cmucl/lib/"
;
strcat
(
buf
,
default_core
);
}
}
}
}
arch_init
();
os_init
();
os_init
();
#if defined(EXT_PAGER)
#if defined(EXT_PAGER)
...
...
This diff is collapsed.
Click to expand it.
ldb/mips-arch.c
+
2
−
1
View file @
9bd7fbd4
...
@@ -9,8 +9,9 @@
...
@@ -9,8 +9,9 @@
#include
"lispregs.h"
#include
"lispregs.h"
#include
"signal.h"
#include
"signal.h"
void
arch_init
()
char
*
arch_init
()
{
{
return
NULL
;
}
}
os_vm_address_t
arch_get_bad_addr
(
context
)
os_vm_address_t
arch_get_bad_addr
(
context
)
...
...
This diff is collapsed.
Click to expand it.
ldb/sparc-arch.c
+
2
−
1
View file @
9bd7fbd4
...
@@ -9,8 +9,9 @@
...
@@ -9,8 +9,9 @@
#include
"lispregs.h"
#include
"lispregs.h"
#include
"signal.h"
#include
"signal.h"
void
arch_init
()
char
*
arch_init
()
{
{
return
NULL
;
}
}
os_vm_address_t
arch_get_bad_addr
(
context
)
os_vm_address_t
arch_get_bad_addr
(
context
)
...
...
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