* breakpoint.c (insert_breakpoints, update_global_location_list):
authorPedro Alves <palves@redhat.com>
Tue, 2 Sep 2008 15:14:52 +0000 (15:14 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 2 Sep 2008 15:14:52 +0000 (15:14 +0000)
Check breakpoints_always_inserted_mode instead of
always_inserted_mode directly.

gdb/ChangeLog
gdb/breakpoint.c

index 1461825521af00a89f9927c3cbe68e9d1bcea195..b9bd42a413db3abf24adc03c99c339ebe6609b0c 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 847de00610ea7848167bb54b79293d206050734a..48f3384a42f54804b1f66fbd463e49e57b8a17b9 100644 (file)
@@ -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 ();
 }