diff options
Diffstat (limited to 'gdb/common/linux-ptrace.h')
-rw-r--r-- | gdb/common/linux-ptrace.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/common/linux-ptrace.h b/gdb/common/linux-ptrace.h index 8f02c82..39c943e 100644 --- a/gdb/common/linux-ptrace.h +++ b/gdb/common/linux-ptrace.h @@ -22,6 +22,22 @@ struct buffer; #include <sys/ptrace.h> +#ifdef __UCLIBC__ +#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__)) +/* PTRACE_TEXT_ADDR and friends. */ +#include <asm/ptrace.h> +#define HAS_NOMMU +#endif +#endif + +#if !defined(PTRACE_TYPE_ARG3) +#define PTRACE_TYPE_ARG3 void * +#endif + +#if !defined(PTRACE_TYPE_ARG4) +#define PTRACE_TYPE_ARG4 void * +#endif + #ifndef PTRACE_GETSIGINFO # define PTRACE_GETSIGINFO 0x4202 # define PTRACE_SETSIGINFO 0x4203 @@ -69,5 +85,10 @@ struct buffer; extern void linux_ptrace_attach_warnings (pid_t pid, struct buffer *buffer); extern void linux_ptrace_init_warnings (void); +extern void linux_enable_event_reporting (pid_t pid); +extern int linux_supports_tracefork (void); +extern int linux_supports_traceclone (void); +extern int linux_supports_tracevforkdone (void); +extern int linux_supports_tracesysgood (void); #endif /* COMMON_LINUX_PTRACE_H */ |