aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-02-06 18:31:07 +0000
committerMichael Snyder <msnyder@vmware.com>2002-02-06 18:31:07 +0000
commit1900040cf3086ac919a5088dca1ad5de52f33693 (patch)
treef315e472a6bab924e4f0adec2ff0bd54857a539d /gdb/symfile.c
parent81d4647008f8d3b66ae5dacf985d7f887294e231 (diff)
downloadgdb-1900040cf3086ac919a5088dca1ad5de52f33693.zip
gdb-1900040cf3086ac919a5088dca1ad5de52f33693.tar.gz
gdb-1900040cf3086ac919a5088dca1ad5de52f33693.tar.bz2
2002-02-04 Michael Snyder <msnyder@redhat.com>
* breakpoint.h (enum bptype): Add new overlay event bp type. (enable_overlay_breakpoints, disable_overlay_breakpoints): Export. * breakpoint.c (create_internal_breakpoint): New function. (internal_breakpoint_number): Moved into create_internal_breakpoint. (create_longjmp_breakpoint): Use create_internal_breakpoint. (create_thread_event_breakpoint): Ditto. (create_solib_event_breakpoint): Ditto. (create_overlay_event_breakpoint): New function. (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs. (update_breakpoints_after_exec): Delete and re-initialize overlay event breakpoints after an exec. Add FIXME comment about longjmp breakpoint. (print_it_typical): Ignore overlay event breakpoints. (print_one_breakpoint): Ditto. (mention): Ditto. (bpstat_what): Do not stop for overlay event breakpoints. (delete_breakpoint): Don't delete overlay event breakpoints. (breakpoint_re_set_one): Delete the overlay event breakpoint. (breakpoint_re_set): Re-create overlay event breakpoint. * symfile.c (overlay_auto_command): Enable overlay breakpoints. (overlay_manual_command): Disable overlay breakpoints. (overlay_off_command): Disable overlay breakpoints.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index bbc2376..ebdd62b 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2898,6 +2898,7 @@ static void
overlay_auto_command (char *args, int from_tty)
{
overlay_debugging = ovly_auto;
+ enable_overlay_breakpoints ();
if (info_verbose)
printf_filtered ("Automatic overlay debugging enabled.");
}
@@ -2910,6 +2911,7 @@ static void
overlay_manual_command (char *args, int from_tty)
{
overlay_debugging = ovly_on;
+ disable_overlay_breakpoints ();
if (info_verbose)
printf_filtered ("Overlay debugging enabled.");
}
@@ -2922,6 +2924,7 @@ static void
overlay_off_command (char *args, int from_tty)
{
overlay_debugging = ovly_off;
+ disable_overlay_breakpoints ();
if (info_verbose)
printf_filtered ("Overlay debugging disabled.");
}