Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [armeabi-v7a] Compile : countersplus <= inlineHook.c
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: warning: declaration of 'struct pt_regs' will not be visible
- outside of this function [-Wvisibility]
- static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
- ^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:100:17: error: incomplete definition of type 'struct pt_regs'
- offset = regs->ARM_pc - CLEAR_BIT0(item->target_addr);
- ~~~~^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: note: forward declaration of 'struct pt_regs'
- static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
- ^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:103:10: error: incomplete definition of type 'struct pt_regs'
- regs->ARM_pc = (uint32_t) item->trampoline_instructions + item->trampoli...
- ~~~~^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: note: forward declaration of 'struct pt_regs'
- static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
- ^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:109:17: error: incomplete definition of type 'struct pt_regs'
- offset = regs->ARM_pc - (int) item->trampoline_instructions;
- ~~~~^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: note: forward declaration of 'struct pt_regs'
- static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
- ^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:112:10: error: incomplete definition of type 'struct pt_regs'
- regs->ARM_pc = CLEAR_BIT0(item->target_addr) + item->orig_boundaries[i];
- ~~~~^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: note: forward declaration of 'struct pt_regs'
- static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
- ^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:124:17: error: variable has incomplete type 'struct pt_regs'
- struct pt_regs regs;
- ^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:124:9: note: forward declaration of 'struct pt_regs'
- struct pt_regs regs;
- ^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:126:13: error: use of undeclared identifier 'PTRACE_GETREGS'
- if (ptrace(PTRACE_GETREGS, tid, NULL, ®s) == 0) {
- ^
- ./beatsaber-hook/shared/inline-hook/inlineHook.c:140:10: error: use of undeclared identifier 'PTRACE_SETREGS'
- ptrace(PTRACE_SETREGS, tid, NULL, ®s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement