| Index: gdb/common/linux-ptrace.h
|
| diff --git a/gdb/common/linux-ptrace.h b/gdb/common/linux-ptrace.h
|
| index 96ad33d630c647918a5bfdd5e9a6b2022efc3233..39c943e456f301557fc33136026d6b0c8de27431 100644
|
| --- a/gdb/common/linux-ptrace.h
|
| +++ b/gdb/common/linux-ptrace.h
|
| @@ -1,4 +1,4 @@
|
| -/* Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
| +/* Copyright (C) 2011-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -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 */
|
|
|