Check breakpoints_always_inserted_mode instead of
always_inserted_mode directly.
+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.
+
2008-09-02 Andreas Schwab <schwab@suse.de>
* ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
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. */
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 ();
}