Advertisement
Sc2ad

Untitled

Jun 16th, 2019
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. [armeabi-v7a] Compile : countersplus <= inlineHook.c
  2. ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: warning: declaration of 'struct pt_regs' will not be visible
  3. outside of this function [-Wvisibility]
  4. static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
  5. ^
  6. ./beatsaber-hook/shared/inline-hook/inlineHook.c:100:17: error: incomplete definition of type 'struct pt_regs'
  7. offset = regs->ARM_pc - CLEAR_BIT0(item->target_addr);
  8. ~~~~^
  9. ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: note: forward declaration of 'struct pt_regs'
  10. static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
  11. ^
  12. ./beatsaber-hook/shared/inline-hook/inlineHook.c:103:10: error: incomplete definition of type 'struct pt_regs'
  13. regs->ARM_pc = (uint32_t) item->trampoline_instructions + item->trampoli...
  14. ~~~~^
  15. ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: note: forward declaration of 'struct pt_regs'
  16. static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
  17. ^
  18. ./beatsaber-hook/shared/inline-hook/inlineHook.c:109:17: error: incomplete definition of type 'struct pt_regs'
  19. offset = regs->ARM_pc - (int) item->trampoline_instructions;
  20. ~~~~^
  21. ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: note: forward declaration of 'struct pt_regs'
  22. static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
  23. ^
  24. ./beatsaber-hook/shared/inline-hook/inlineHook.c:112:10: error: incomplete definition of type 'struct pt_regs'
  25. regs->ARM_pc = CLEAR_BIT0(item->target_addr) + item->orig_boundaries[i];
  26. ~~~~^
  27. ./beatsaber-hook/shared/inline-hook/inlineHook.c:92:67: note: forward declaration of 'struct pt_regs'
  28. static bool doProcessThreadPC(struct inlineHookItem *item, struct pt_regs *regs, int action)
  29. ^
  30. ./beatsaber-hook/shared/inline-hook/inlineHook.c:124:17: error: variable has incomplete type 'struct pt_regs'
  31. struct pt_regs regs;
  32. ^
  33. ./beatsaber-hook/shared/inline-hook/inlineHook.c:124:9: note: forward declaration of 'struct pt_regs'
  34. struct pt_regs regs;
  35. ^
  36. ./beatsaber-hook/shared/inline-hook/inlineHook.c:126:13: error: use of undeclared identifier 'PTRACE_GETREGS'
  37. if (ptrace(PTRACE_GETREGS, tid, NULL, &regs) == 0) {
  38. ^
  39. ./beatsaber-hook/shared/inline-hook/inlineHook.c:140:10: error: use of undeclared identifier 'PTRACE_SETREGS'
  40. ptrace(PTRACE_SETREGS, tid, NULL, &regs);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement