Forgot to add these files. They are referent to the last commit,
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / ovlymgr.c
index bdb90feae6bd5f23fac3397399ccb18cf2065c80..533606b036f74c8a44eee4629e1e6389f67d6116 100644 (file)
@@ -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];
@@ -30,6 +42,15 @@ FlushCache (void)
 #endif
 }
 
+/* _ovly_debug_event:
+ * Debuggers may set a breakpoint here, to be notified 
+ * when the overlay table has been modified.
+ */
+static void
+_ovly_debug_event (void)
+{
+}
+
 /* OverlayLoad:
  * Copy the overlay into its runtime region,
  * and mark the overlay as "mapped".
@@ -57,7 +78,7 @@ OverlayLoad (unsigned long ovlyno)
             _ovly_table[ovlyno][SIZE]);
 
   FlushCache ();
-
+  _ovly_debug_event ();
   return TRUE;
 }
 
@@ -80,6 +101,7 @@ OverlayUnload (unsigned long ovlyno)
             _ovly_table[ovlyno][VMA],
             _ovly_table[ovlyno][SIZE]);
 
+  _ovly_debug_event ();
   return TRUE;
 }
 
@@ -185,11 +207,6 @@ D10VTranslate (unsigned long logical,
 static void
 ovly_copy (unsigned long dst, unsigned long src, long size)
 {
-#ifdef  __M32R__
-  memcpy ((void *) dst, (void *) src, size);
-  return;
-#endif /* M32R */
-
 #ifdef  __D10V__
   unsigned long *s, *d, tmp;
   short dmap_src, dmap_dst;
@@ -220,6 +237,10 @@ ovly_copy (unsigned long dst, unsigned long src, long size)
        D10VTranslate (dst, &dmap_dst, &d);
     }
   DMAP = dmap_save;
+#else
+  memcpy ((void *) dst, (void *) src, size);
 #endif /* D10V */
+  return;
 }
 
+#endif /* __SPU__ */
This page took 0.024628 seconds and 4 git commands to generate.