* breakpoint.c (create_overlay_event_breakpoint): Rename to ...
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 22 Aug 2008 15:50:44 +0000 (15:50 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 22 Aug 2008 15:50:44 +0000 (15:50 +0000)
(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.

gdb/ChangeLog
gdb/breakpoint.c

index 2e26b2681059d2a18afe8adf495e7a04fc04ed5d..6b6ad28e0e0360b55128cfe4cbb9a6e27081fd52 100644 (file)
@@ -1,3 +1,10 @@
+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.
index a81f40dc45fc1a42515fa9c62e2c3e563aac2d79..18e207fdf8d126dda41fce5865962523e43f2eb0 100644 (file)
@@ -4528,12 +4528,12 @@ delete_longjmp_breakpoint (int thread)
 }
 
 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), 
@@ -4553,6 +4553,14 @@ create_overlay_event_breakpoint (char *func_name)
   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)
 {