+2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
+ (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
+ (create_overlay_event_breakpoint): Loop over all objfiles to install
+ multiple instances of the overlay event breakpoint if present.
+
2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
* spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
}
static void
-create_overlay_event_breakpoint (char *func_name)
+create_overlay_event_breakpoint_1 (char *func_name, struct objfile *objfile)
{
struct breakpoint *b;
struct minimal_symbol *m;
- if ((m = lookup_minimal_symbol_text (func_name, NULL)) == NULL)
+ if ((m = lookup_minimal_symbol_text (func_name, objfile)) == NULL)
return;
b = create_internal_breakpoint (SYMBOL_VALUE_ADDRESS (m),
update_global_location_list (1);
}
+static void
+create_overlay_event_breakpoint (char *func_name)
+{
+ struct objfile *objfile;
+ ALL_OBJFILES (objfile)
+ create_overlay_event_breakpoint_1 (func_name, objfile);
+}
+
void
enable_overlay_breakpoints (void)
{