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
85f431aa
Commit
85f431aa
authored
20 years ago
by
cwang
Browse files
Options
Downloads
Patches
Plain Diff
Try to make backtrace work on amd64
parent
c2a84df3
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
lisp/backtrace.c
+4
-4
4 additions, 4 deletions
lisp/backtrace.c
with
4 additions
and
4 deletions
lisp/backtrace.c
+
4
−
4
View file @
85f431aa
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/backtrace.c,v 1.1
2
2004/0
7/12 23:44:07 pmai
Exp $
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/backtrace.c,v 1.1
3
2004/0
8/04 18:33:58 cwang
Exp $
*
*
* Simple backtrace facility. More or less from Rob's lisp version.
* Simple backtrace facility. More or less from Rob's lisp version.
*/
*/
...
@@ -255,7 +255,7 @@ static int
...
@@ -255,7 +255,7 @@ static int
stack_pointer_p
(
unsigned
long
p
)
stack_pointer_p
(
unsigned
long
p
)
{
{
return
(
p
<
CONTROL_STACK_START
+
CONTROL_STACK_SIZE
return
(
p
<
CONTROL_STACK_START
+
CONTROL_STACK_SIZE
&&
p
>
(
unsigned
)
&
p
&&
p
>
(
unsigned
long
)
&
p
&&
(
p
&
3
)
==
0
);
&&
(
p
&
3
)
==
0
);
}
}
...
@@ -268,7 +268,7 @@ ra_pointer_p (unsigned ra)
...
@@ -268,7 +268,7 @@ ra_pointer_p (unsigned ra)
static
unsigned
static
unsigned
deref
(
unsigned
long
p
,
int
offset
)
deref
(
unsigned
long
p
,
int
offset
)
{
{
return
*
((
unsigned
*
)
p
+
offset
);
return
*
((
unsigned
long
*
)
p
+
offset
);
}
}
static
void
static
void
...
@@ -343,7 +343,7 @@ x86_call_context (unsigned fp, unsigned *ra, unsigned *ocfp)
...
@@ -343,7 +343,7 @@ x86_call_context (unsigned fp, unsigned *ra, unsigned *ocfp)
{
{
unsigned
lisp_ocfp
,
lisp_ra
,
c_ocfp
,
c_ra
;
unsigned
lisp_ocfp
,
lisp_ra
,
c_ocfp
,
c_ra
;
int
lisp_valid_p
,
c_valid_p
;
int
lisp_valid_p
,
c_valid_p
;
if
(
!
stack_pointer_p
(
fp
))
if
(
!
stack_pointer_p
(
fp
))
return
0
;
return
0
;
...
...
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