projects
/
scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b60f72
)
Fix starting off with the wrong stack index
author
Luke Lau
<luke_lau@icloud.com>
Tue, 30 Jul 2019 22:57:23 +0000
(23:57 +0100)
committer
Luke Lau
<luke_lau@icloud.com>
Tue, 30 Jul 2019 22:57:23 +0000
(23:57 +0100)
And thus fix botched backtraces
codegen.scm
patch
|
blob
|
history
diff --git
a/codegen.scm
b/codegen.scm
index 52df26ece76527068fd89a7c397c3ca632aeaef4..7a12fc2228795b588cfbf117d3f1e7712f282be6 100644
(file)
--- a/
codegen.scm
+++ b/
codegen.scm
@@
-541,7
+541,7
@@
(emit "movq %rsp, %rbp") ; set up the base pointer
(emit "movq %rsp, %rbp") ; set up the base pointer
- (codegen-expr xform-prog
wordsize
'())
+ (codegen-expr xform-prog
(- wordsize)
'())
; exit syscall
(emit "mov %rax, %rdi")
; exit syscall
(emit "mov %rax, %rdi")