mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
panic: fix stack traces
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
static void tracestack(uint64_t** addr){
|
static void tracestack(uint64_t** addr){
|
||||||
for(size_t depth = 0; depth < TRACE_MAXDEPTH; ++depth){
|
for(size_t depth = 0; depth < TRACE_MAXDEPTH; ++depth){
|
||||||
if(addr < (uint64_t)0xFFFFFFFF80000000) return;
|
|
||||||
uint64_t *calleeaddr = *(addr + 1);
|
uint64_t *calleeaddr = *(addr + 1);
|
||||||
|
if(calleeaddr < (uint64_t)0xFFFFFFFF80000000) return;
|
||||||
addr = (uint64_t**)*addr;
|
addr = (uint64_t**)*addr;
|
||||||
|
|
||||||
printf("%lu: %p\n", depth, calleeaddr);
|
printf("%lu: %p\n", depth, calleeaddr);
|
||||||
|
|||||||
Reference in New Issue
Block a user