gdb/nat/linux-ptrace.h - gdb
Macros defined
Source code
- #ifndef COMMON_LINUX_PTRACE_H
- #define COMMON_LINUX_PTRACE_H
- struct buffer;
- #include <sys/ptrace.h>
- #ifdef __UCLIBC__
- #if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
- #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
- #endif
- #ifndef PTRACE_EVENT_FORK
- #define PTRACE_SETOPTIONS 0x4200
- #define PTRACE_GETEVENTMSG 0x4201
- #define PTRACE_O_TRACESYSGOOD 0x00000001
- #define PTRACE_O_TRACEFORK 0x00000002
- #define PTRACE_O_TRACEVFORK 0x00000004
- #define PTRACE_O_TRACECLONE 0x00000008
- #define PTRACE_O_TRACEEXEC 0x00000010
- #define PTRACE_O_TRACEVFORKDONE 0x00000020
- #define PTRACE_O_TRACEEXIT 0x00000040
- #define PTRACE_EVENT_FORK 1
- #define PTRACE_EVENT_VFORK 2
- #define PTRACE_EVENT_CLONE 3
- #define PTRACE_EVENT_EXEC 4
- #define PTRACE_EVENT_VFORK_DONE 5
- #define PTRACE_EVENT_EXIT 6
- #endif
- #ifndef PTRACE_O_EXITKILL
- #define PTRACE_O_EXITKILL 0x00100000
- #endif
- #if (defined __bfin__ || defined __frv__ || defined __sh__) \
- && !defined PTRACE_GETFDPIC
- #define PTRACE_GETFDPIC 31
- #define PTRACE_GETFDPIC_EXEC 0
- #define PTRACE_GETFDPIC_INTERP 1
- #endif
- #ifndef __WALL
- #define __WALL 0x40000000
- #endif
- extern void linux_ptrace_attach_fail_reason (pid_t pid, struct buffer *buffer);
- extern char *linux_ptrace_attach_fail_reason_string (ptid_t ptid, int err);
- extern void linux_ptrace_init_warnings (void);
- extern void linux_enable_event_reporting (pid_t pid, int attached);
- extern void linux_disable_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);
- extern void linux_ptrace_set_additional_flags (int);
- extern int linux_ptrace_get_extended_event (int wstat);
- extern int linux_is_extended_waitstatus (int wstat);
- #endif