mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Get backtraces working on AARCH64
This commit is contained in:
parent
4edbc98811
commit
285e8a2348
2 changed files with 7 additions and 6 deletions
|
@ -117,10 +117,6 @@ _start:
|
|||
// this is the first argument to cosmo() below
|
||||
mov x0,sp
|
||||
|
||||
// setup stack frame
|
||||
mov x29,#0
|
||||
mov x30,#0
|
||||
|
||||
// align stack to GetStackSize() so GetStackAddr() is fast
|
||||
mov x1,sp
|
||||
.weak ape_stack_memsz
|
||||
|
@ -129,8 +125,12 @@ _start:
|
|||
and x1,x2,x1
|
||||
mov sp,x1
|
||||
|
||||
// switch to c start function
|
||||
b cosmo
|
||||
// setup backtraces
|
||||
mov x29,#0
|
||||
|
||||
// switch to c code
|
||||
bl cosmo
|
||||
.unreachable
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#else
|
||||
|
|
|
@ -67,6 +67,7 @@ noinstrument noasan int PrintBacktraceUsingSymbols(int fd,
|
|||
break;
|
||||
}
|
||||
addr = frame->addr;
|
||||
if (!addr) break;
|
||||
if (addr == (intptr_t)_weaken(__gc)) {
|
||||
do {
|
||||
--gi;
|
||||
|
|
Loading…
Add table
Reference in a new issue