From 723b724b171ec32ce7005c43fc7da4f5206f7190 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 30 Sep 2011 00:01:59 +0000 Subject: gdbserver: add support for FDPIC loadmaps The DSBT support is very close to the FDPIC code, so extend the existing loadmap support to work with FDPIC loadmaps too. Signed-off-by: Mike Frysinger --- gdb/common/linux-ptrace.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/common/linux-ptrace.h') diff --git a/gdb/common/linux-ptrace.h b/gdb/common/linux-ptrace.h index ea4ee0d..841775e 100644 --- a/gdb/common/linux-ptrace.h +++ b/gdb/common/linux-ptrace.h @@ -51,6 +51,13 @@ #endif /* PTRACE_EVENT_FORK */ +#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 + /* We can't always assume that this flag is available, but all systems with the ptrace event handlers also have __WALL, so it's safe to use in some contexts. */ -- cgit v1.1