+2009-06-23 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ Revert 2009-05-14 breakpoint commit (no longer needed).
+ * breakpoint.h (breakpoint_re_set_objfile): Remove
+ * breakpoint.c (breakpoint_re_set_objfile): Likewise
+ (create_overlay_event_breakpoint): Remove objfile parameter,
+ iterate over all objfiles.
+ * objfiles.c (objfile_relocate): Update.
+ * symfile.c (new_symfile_objfile): Likewise.
+
2009-06-23 Tom Tromey <tromey@redhat.com>
PR gdb/10309:
}
static void
-create_overlay_event_breakpoint (char *func_name, struct objfile *objfile)
+create_overlay_event_breakpoint (char *func_name)
{
- struct breakpoint *b;
- struct minimal_symbol *m;
+ struct objfile *objfile;
- m = lookup_minimal_symbol_text (func_name, objfile);
- if (m == NULL)
- return;
+ ALL_OBJFILES (objfile)
+ {
+ struct breakpoint *b;
+ struct minimal_symbol *m;
+
+ m = lookup_minimal_symbol_text (func_name, objfile);
+ if (m == NULL)
+ continue;
- b = create_internal_breakpoint (SYMBOL_VALUE_ADDRESS (m),
- bp_overlay_event);
- b->addr_string = xstrdup (func_name);
+ b = create_internal_breakpoint (SYMBOL_VALUE_ADDRESS (m),
+ bp_overlay_event);
+ b->addr_string = xstrdup (func_name);
- if (overlay_debugging == ovly_auto)
- {
- b->enable_state = bp_enabled;
- overlay_events_enabled = 1;
- }
- else
- {
- b->enable_state = bp_disabled;
- overlay_events_enabled = 0;
+ if (overlay_debugging == ovly_auto)
+ {
+ b->enable_state = bp_enabled;
+ overlay_events_enabled = 1;
+ }
+ else
+ {
+ b->enable_state = bp_disabled;
+ overlay_events_enabled = 0;
+ }
}
update_global_location_list (1);
}
struct breakpoint *b;
struct breakpoint *temp;
struct bp_location *bploc;
- struct objfile *objfile;
/* We're about to delete breakpoints from GDB's lists. If the
INSERTED flag is true, GDB will try to lift the breakpoints by
}
}
/* FIXME what about longjmp breakpoints? Re-create them here? */
- ALL_OBJFILES (objfile)
- create_overlay_event_breakpoint ("_ovly_debug_event", objfile);
+ create_overlay_event_breakpoint ("_ovly_debug_event");
}
int
return 0;
}
-/* Re-set all breakpoints after symbols have been re-loaded.
-
- If OBJFILE is non-null, create overlay break point only in OBJFILE
- (speed optimization). Otherwise rescan all loaded objfiles. */
-
+/* Re-set all breakpoints after symbols have been re-loaded. */
void
-breakpoint_re_set_objfile (struct objfile *objfile)
+breakpoint_re_set (void)
{
struct breakpoint *b, *temp;
enum language save_language;
set_language (save_language);
input_radix = save_input_radix;
- if (objfile == NULL)
- ALL_OBJFILES (objfile)
- create_overlay_event_breakpoint ("_ovly_debug_event", objfile);
- else
- create_overlay_event_breakpoint ("_ovly_debug_event", objfile);
-}
-
-/* Re-set all breakpoints after symbols have been re-loaded. */
-
-void
-breakpoint_re_set (void)
-{
- breakpoint_re_set_objfile (NULL);
+ create_overlay_event_breakpoint ("_ovly_debug_event");
}
\f
/* Reset the thread number of this breakpoint: