aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/ovlymgr.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-11 20:00:29 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-11 20:00:29 +0000
commit83547f02b76a49b6899e65a5302e72e0a5ef8fe8 (patch)
treea548e2d7c2aeaf9c8ed0a5b05a80f4ca8d31f2c2 /gdb/testsuite/gdb.base/ovlymgr.c
parentdcf52cd8d5c0971b089572d71f49a0d1c7ea7f55 (diff)
downloadgdb-83547f02b76a49b6899e65a5302e72e0a5ef8fe8.zip
gdb-83547f02b76a49b6899e65a5302e72e0a5ef8fe8.tar.gz
gdb-83547f02b76a49b6899e65a5302e72e0a5ef8fe8.tar.bz2
* gdb.base/overlays.exp: Add support for targets with only code
overlay support, not data overlay. Support spu-*-* target in this mode. * gdb.base/ovlymgr.c: Provide stubs for spu target. * gdb.base/spu.ld: New file.
Diffstat (limited to 'gdb/testsuite/gdb.base/ovlymgr.c')
-rw-r--r--gdb/testsuite/gdb.base/ovlymgr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/ovlymgr.c b/gdb/testsuite/gdb.base/ovlymgr.c
index f4958ed..533606b 100644
--- a/gdb/testsuite/gdb.base/ovlymgr.c
+++ b/gdb/testsuite/gdb.base/ovlymgr.c
@@ -5,6 +5,18 @@
#include "ovlymgr.h"
+#ifdef __SPU__
+/* SPU tool chain provides its own overlay manager. */
+bool
+OverlayLoad (unsigned long ovlyno)
+{
+}
+bool
+OverlayUnload (unsigned long ovlyno)
+{
+}
+#else /* __SPU__ */
+
/* Local functions and data: */
extern unsigned long _ovly_table[][4];
@@ -231,3 +243,4 @@ ovly_copy (unsigned long dst, unsigned long src, long size)
return;
}
+#endif /* __SPU__ */