History

arm64: fix some casts

in the new common backtrace/context code.

Michael Matz committed 6 years ago

Commit 6cb68c31 parent 2fb79a61 file · +2 −2Browse files

Unified · Split

tccrun.c+2−2
@@ -597,7 +597,7 @@ static void rt_getcontext(ucontext_t *uc, rt_context *rc) · 596 unmodified lines
597597 rc->sp = uc->uc_mcontext.arm_sp;
598598 #elif defined(__aarch64__)
599599 rc->ip = uc->uc_mcontext.pc;
600− rc->fp = (addr_t *)uc->uc_mcontext.regs[29];
600+ rc->fp = uc->uc_mcontext.regs[29];
601601 #endif
602602 }
603603
@@ -760,7 +760,7 @@ static int rt_get_caller_pc(addr_t *paddr, rt_context *rc, int level) · 156 unmodified lines
760760 if (level == 0) {
761761 *paddr = rc->ip;
762762 } else {
763− addr_t *fp = rc->fp;
763+ addr_t *fp = (addr_t*)rc->fp;
764764 while (--level)
765765 fp = (addr_t *)fp[0];
766766 *paddr = fp[1];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t