diff options
author | Pavel Emelyanov <xemul@virtuozzo.com> | 2016-10-27 14:25:46 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2017-03-15 00:06:01 +0300 |
commit | c954ac161868a63a572a00140b4f81092581c44f (patch) | |
tree | c4e08c63bb8e311a92f79a2f54df9c31da33321c /compel/arch | |
parent | 6fee9c70a787c5368976562888711687f8218d98 (diff) |
infect: Move breakpoints management into infect
This removes restorer.h from infect. The header describes
routines, structures and constants messing with restorer blob.
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'compel/arch')
-rw-r--r-- | compel/arch/aarch64/src/lib/include/ptrace.h | 11 | ||||
-rw-r--r-- | compel/arch/arm/src/lib/include/ptrace.h | 11 | ||||
-rw-r--r-- | compel/arch/ppc64/src/lib/include/ptrace.h | 11 | ||||
-rw-r--r-- | compel/arch/x86/src/lib/include/ptrace.h | 2 |
4 files changed, 35 insertions, 0 deletions
diff --git a/compel/arch/aarch64/src/lib/include/ptrace.h b/compel/arch/aarch64/src/lib/include/ptrace.h index 9cf7d460d..e18454df2 100644 --- a/compel/arch/aarch64/src/lib/include/ptrace.h +++ b/compel/arch/aarch64/src/lib/include/ptrace.h @@ -1,4 +1,15 @@ #ifndef __COMPEL_PTRACE_H__ #define __COMPEL_PTRACE_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; +} + #endif diff --git a/compel/arch/arm/src/lib/include/ptrace.h b/compel/arch/arm/src/lib/include/ptrace.h index 9cf7d460d..e18454df2 100644 --- a/compel/arch/arm/src/lib/include/ptrace.h +++ b/compel/arch/arm/src/lib/include/ptrace.h @@ -1,4 +1,15 @@ #ifndef __COMPEL_PTRACE_H__ #define __COMPEL_PTRACE_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; +} + #endif diff --git a/compel/arch/ppc64/src/lib/include/ptrace.h b/compel/arch/ppc64/src/lib/include/ptrace.h index 9cf7d460d..0274c2675 100644 --- a/compel/arch/ppc64/src/lib/include/ptrace.h +++ b/compel/arch/ppc64/src/lib/include/ptrace.h @@ -1,4 +1,15 @@ #ifndef __COMPEL_PTRACE_H__ #define __COMPEL_PTRACE_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; +} + #endif diff --git a/compel/arch/x86/src/lib/include/ptrace.h b/compel/arch/x86/src/lib/include/ptrace.h index 991f1152a..844ea0efd 100644 --- a/compel/arch/x86/src/lib/include/ptrace.h +++ b/compel/arch/x86/src/lib/include/ptrace.h @@ -1,4 +1,6 @@ #ifndef __COMPEL_PTRACE_H__ #define __COMPEL_PTRACE_H__ #define ARCH_SI_TRAP SI_KERNEL +extern int ptrace_set_breakpoint(pid_t pid, void *addr); +extern int ptrace_flush_breakpoints(pid_t pid); #endif |