aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-04-04 19:48:09 +0000
committerMichael Snyder <msnyder@vmware.com>2002-04-04 19:48:09 +0000
commitb22ad7a77634debda60fe2ba2b237104a1aa7211 (patch)
tree4266d1217a0abc3ab93433dd9b00f512c478027f /gdb
parent61bef6f1a0bde53d572248596bbada98c8049b56 (diff)
downloadgdb-b22ad7a77634debda60fe2ba2b237104a1aa7211.zip
gdb-b22ad7a77634debda60fe2ba2b237104a1aa7211.tar.gz
gdb-b22ad7a77634debda60fe2ba2b237104a1aa7211.tar.bz2
2002-04-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/ovlymgr.c: Add overlay event breakpoint support.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/ovlymgr.c12
2 files changed, 15 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 6bfd247..92bb9cf 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2002-04-04 Michael Snyder <msnyder@redhat.com>
+
+ * gdb.base/ovlymgr.c: Add overlay event breakpoint support.
+
2002-04-03 Daniel Jacobowitz <drow@mvista.com>
* lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
diff --git a/gdb/testsuite/gdb.base/ovlymgr.c b/gdb/testsuite/gdb.base/ovlymgr.c
index 0b04c54..f4958ed 100644
--- a/gdb/testsuite/gdb.base/ovlymgr.c
+++ b/gdb/testsuite/gdb.base/ovlymgr.c
@@ -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;
}