aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-08-22 15:50:44 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-08-22 15:50:44 +0000
commit25db0f1bf5952f37770750ad364d7e191a031458 (patch)
tree209244693df6b11cdfee570e453ad61b716d7cc7 /gdb/breakpoint.c
parent0391f2487cd27e6d11f068c5ac66062ea753a7b0 (diff)
downloadgdb-25db0f1bf5952f37770750ad364d7e191a031458.zip
gdb-25db0f1bf5952f37770750ad364d7e191a031458.tar.gz
gdb-25db0f1bf5952f37770750ad364d7e191a031458.tar.bz2
* 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/breakpoint.c')
-rw-r--r--gdb/breakpoint.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index a81f40d..18e207f 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)
{