compel: switch breakpoint functions to non-inline at arm64 platform

Signed-off-by: fu.lin <fulin10@huawei.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
fu.lin 2022-04-15 13:00:04 +08:00 committed by Andrei Vagin
parent 719fea2fc9
commit b7953c6c7f
2 changed files with 12 additions and 9 deletions

View file

@ -2,14 +2,7 @@
#define __COMPEL_BREAKPOINTS_H__
#define ARCH_SI_TRAP TRAP_BRKPT
static inline int ptrace_set_breakpoint(pid_t pid, void *addr)
{
return 0;
}
static inline int ptrace_flush_breakpoints(pid_t pid)
{
return 0;
}
int ptrace_set_breakpoint(pid_t pid, void *addr);
int ptrace_flush_breakpoints(pid_t pid);
#endif

View file

@ -176,3 +176,13 @@ unsigned long compel_task_size(void)
break;
return task_size;
}
int ptrace_set_breakpoint(pid_t pid, void *addr)
{
return 0;
}
int ptrace_flush_breakpoints(pid_t pid)
{
return 0;
}