Reviewed and approved by Daniel Jacobowitz <drow@false.org>
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / ovlymgr.c
index bdb90feae6bd5f23fac3397399ccb18cf2065c80..f4958ed14a372ff634ff93e9e770bc9cb8336813 100644 (file)
@@ -30,6 +30,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 +66,7 @@ OverlayLoad (unsigned long ovlyno)
             _ovly_table[ovlyno][SIZE]);
 
   FlushCache ();
-
+  _ovly_debug_event ();
   return TRUE;
 }
 
@@ -80,6 +89,7 @@ OverlayUnload (unsigned long ovlyno)
             _ovly_table[ovlyno][VMA],
             _ovly_table[ovlyno][SIZE]);
 
+  _ovly_debug_event ();
   return TRUE;
 }
 
@@ -185,11 +195,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 +225,9 @@ 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;
 }
 
This page took 0.02542 seconds and 4 git commands to generate.