aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-08-13 13:58:45 +0000
committerPedro Alves <palves@redhat.com>2008-08-13 13:58:45 +0000
commit33e5cbd66db39a4b0c93a515f7387ac435160049 (patch)
tree1090799ad208e0bf820fcb22edca4c0e3f644e61 /gdb/doc
parent8fbde58b702f0e1273c8292d1359e474fd96126b (diff)
downloadgdb-33e5cbd66db39a4b0c93a515f7387ac435160049.zip
gdb-33e5cbd66db39a4b0c93a515f7387ac435160049.tar.gz
gdb-33e5cbd66db39a4b0c93a515f7387ac435160049.tar.bz2
gdb/
* breakpoint.c (always_inserted_auto, always_inserted_on) (always_inserted_off, always_inserted_enums): New. (always_inserted_mode): Change type to char* and point to always_inserted_auto. (show_always_inserted_mode): In auto mode, also show the current effect of the option. (breakpoints_always_inserted_mode): Adjust for the new auto mode. (_initialize_breakpoint): Make the "set breakpoints always-inserted" command an enum command. Extend help to describe the auto mode. gdb/doc/ * gdb.texinfo (breakpoint always-inserted) Describe the auto mode setting, and make it the default. (Non-Stop Mode): Remove "set breakpoints always-inserted 1" from non-stop script example.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog7
-rw-r--r--gdb/doc/gdb.texinfo17
2 files changed, 18 insertions, 6 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 5b13fb2..f17217e 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-13 Pedro Alves <pedro@codesourcery.com>
+
+ * gdb.texinfo (breakpoint always-inserted) Describe the auto mode
+ setting, and make it the default.
+ (Non-Stop Mode): Remove "set breakpoints always-inserted 1" from
+ non-stop script example.
+
2008-08-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdbint.texinfo (Raw and Virtual Register Representations): Fix
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 8cbef2f..5c851ee 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -3313,15 +3313,23 @@ This behavior can be controlled with the following commands::
@kindex show breakpoint always-inserted
@table @code
@item set breakpoint always-inserted off
-This is the default behaviour. All breakpoints, including newly added
-by the user, are inserted in the target only when the target is
-resumed. All breakpoints are removed from the target when it stops.
+All breakpoints, including newly added by the user, are inserted in
+the target only when the target is resumed. All breakpoints are
+removed from the target when it stops.
@item set breakpoint always-inserted on
Causes all breakpoints to be inserted in the target at all times. If
the user adds a new breakpoint, or changes an existing breakpoint, the
breakpoints in the target are updated immediately. A breakpoint is
removed from the target only when breakpoint itself is removed.
+
+@cindex non-stop mode, and @code{breakpoint always-inserted}
+@item set breakpoint always-inserted auto
+This is the default mode. If @value{GDBN} is controlling the inferior
+in non-stop mode (@pxref{Non-Stop Mode}), gdb behaves as if
+@code{breakpoint always-inserted} mode is on. If @value{GDBN} is
+controlling the inferior in all-stop mode, @value{GDBN} behaves as if
+@code{breakpoint always-inserted} mode is off.
@end table
@cindex negative breakpoint numbers
@@ -4571,9 +4579,6 @@ or attach to your program:
# For target remote, use remote-async instead of linux-async.
maint set linux-async 1
-# With non-stop, breakpoints have to be always inserted.
-set breakpoint always-inserted 1
-
# If using the CLI, pagination breaks non-stop.
set pagination off