summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-08-22 15:50:39 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-08-22 15:50:39 +0000
commit99a500cfa4629146fa0977ca7da96548859f418d (patch)
tree572903b7957ac06a7166b9e8984bb6c24fac41ae /gdb
parent0069e64cafc091a6e6aa9885e4b6c1b26f70fed8 (diff)
downloadgdb-99a500cfa4629146fa0977ca7da96548859f418d.tar.gz
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/breakpoint.c12
2 files changed, 17 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2e26b268105..6b6ad28e0e0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
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.
(info_spu_event_command): Command only supported on SPU architecture.
(info_spu_signal_command): Likewise.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index a81f40dc45f..18e207fdf8d 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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)
{