summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lerner2012-01-27 12:12:13 (EST)
committerEugene Tarassov2012-03-26 13:22:49 (EDT)
commite03ef06ec0630c26fec412b27df0e1b491d4addb (patch)
treea96cce2dbe1e263d4261ddf12e0110790128dd16
parent478be837eba43123caaa5b7072faeec9434c97de (diff)
downloadorg.eclipse.tcf.agent-e03ef06ec0630c26fec412b27df0e1b491d4addb.zip
org.eclipse.tcf.agent-e03ef06ec0630c26fec412b27df0e1b491d4addb.tar.gz
org.eclipse.tcf.agent-e03ef06ec0630c26fec412b27df0e1b491d4addb.tar.bz2
linux: Extend basic register set definition for other archs
Allow different processor architectures to characterize the REG_SET structure fields gp and fp using processor specific declared structures. Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
-rw-r--r--agent/system/GNU/Linux/tcf/regset.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/system/GNU/Linux/tcf/regset.h b/agent/system/GNU/Linux/tcf/regset.h
index df182f1..ee883d7 100644
--- a/agent/system/GNU/Linux/tcf/regset.h
+++ b/agent/system/GNU/Linux/tcf/regset.h
@@ -20,6 +20,9 @@
#if defined(__linux__)
# include <sys/user.h>
+#if !defined(__i386__) && !defined(__x86_64__)
+# include <tcf/regdefs-mdep.h>
+#else
typedef struct REG_SET {
struct user user;
struct user_fpregs_struct fp;
@@ -30,3 +33,4 @@ typedef struct REG_SET {
#endif
} REG_SET;
#endif
+#endif