This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] fix breakpoint always-inserted fallout
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 2 Sep 2008 16:16:29 +0100
- Subject: [ob] fix breakpoint always-inserted fallout
These were missed when always_inserted was changed into a char* (gdb enum)
instead of a boolean. This eventually showed up as failures in follow fork
support in a multi-process gdb.
Checked in as obvious.
--
Pedro Alves
2008-09-02 Pedro Alves <pedro@codesourcery.com>
* breakpoint.c (insert_breakpoints, update_global_location_list):
Check breakpoints_always_inserted_mode instead of
always_inserted_mode directly.
---
gdb/breakpoint.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Index: src/gdb/breakpoint.c
===================================================================
--- src.orig/gdb/breakpoint.c 2008-08-27 15:59:56.000000000 +0100
+++ src/gdb/breakpoint.c 2008-09-02 16:06:26.000000000 +0100
@@ -1285,7 +1285,7 @@ insert_breakpoints (void)
update_global_location_list (1);
- if (!always_inserted_mode && target_has_execution)
+ if (!breakpoints_always_inserted_mode () && target_has_execution)
/* update_global_location_list does not insert breakpoints
when always_inserted_mode is not enabled. Explicitly
insert them now. */
@@ -7085,7 +7085,9 @@ update_global_location_list (int should_
check_duplicates (b);
}
- if (always_inserted_mode && should_insert && target_has_execution)
+ if (breakpoints_always_inserted_mode ()
+ && should_insert
+ && target_has_execution)
insert_breakpoint_locations ();
}