aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-09-02 15:14:52 +0000
committerPedro Alves <palves@redhat.com>2008-09-02 15:14:52 +0000
commita12654ce2daf0e054c2780737632769f10cf62d0 (patch)
treef6ef0cdcd761db786adc28878a4351c52fe1ae9f /gdb
parent8b7a6d61e8481468f70134b0ce48ca3d9b9c77f7 (diff)
downloadgdb-a12654ce2daf0e054c2780737632769f10cf62d0.zip
gdb-a12654ce2daf0e054c2780737632769f10cf62d0.tar.gz
gdb-a12654ce2daf0e054c2780737632769f10cf62d0.tar.bz2
* breakpoint.c (insert_breakpoints, update_global_location_list):
Check breakpoints_always_inserted_mode instead of always_inserted_mode directly.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/breakpoint.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1461825..b9bd42a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 847de00..48f3384 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 ();
}