From: Pedro Alves Date: Tue, 2 Sep 2008 15:14:52 +0000 (+0000) Subject: * breakpoint.c (insert_breakpoints, update_global_location_list): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a12654ce2daf0e054c2780737632769f10cf62d0;p=binutils-gdb.git * breakpoint.c (insert_breakpoints, update_global_location_list): Check breakpoints_always_inserted_mode instead of always_inserted_mode directly. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1461825521a..b9bd42a413d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-09-02 Pedro Alves + + * breakpoint.c (insert_breakpoints, update_global_location_list): + Check breakpoints_always_inserted_mode instead of + always_inserted_mode directly. + 2008-09-02 Andreas Schwab * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 847de00610e..48f3384a42f 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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_insert) 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 (); }