lukaswelte/DCIntrospect-ARC

ARM64: unknown register name 'eax' in asm

Closed this issue · 2 comments

When building DCIntrospect under ARM64:

DCIntrospect.m:621:4: error: unknown register name 'eax' in asm
                        DEBUGGER;
                        ^
DCIntrospect-ARC/DCIntrospect.m:56:225: note: expanded from macro 'DEBUGGER'
#define DEBUGGER do { int trapSignal = AmIBeingDebugged () ? SIGINT : SIGSTOP; __asm__ __volatile__ ("pushl %0\npushl %1\npush $0\nmovl %2, %%eax\nint $0x80\nadd $12, %%esp" : : "g" (trapSignal), "g" (getpid ()), "n" (37) : "eax", "cc"); } while (false);
                                                                                                                                                                                                                                ^
1 error generated.

Not sure how to fix it or what this code actually does.

I'm running into this issue for some reason today - did you fix it somehow?

It's been fixed a long time ago:
#8

Are you running latest code?