diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-09-30 00:01:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-09-30 00:01:59 +0000 |
commit | 723b724b171ec32ce7005c43fc7da4f5206f7190 (patch) | |
tree | 04eaa67e175e0c9f5e4792ee1a42f25adccd571f /gdb/common | |
parent | 1f7c9b6179dac4d645d16a6f9f76a02008ab4ad9 (diff) | |
download | gdb-723b724b171ec32ce7005c43fc7da4f5206f7190.zip gdb-723b724b171ec32ce7005c43fc7da4f5206f7190.tar.gz gdb-723b724b171ec32ce7005c43fc7da4f5206f7190.tar.bz2 |
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 <vapier@gentoo.org>
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/linux-ptrace.h | 7 |
1 files changed, 7 insertions, 0 deletions
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. */ |