From 33e5cbd66db39a4b0c93a515f7387ac435160049 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 13 Aug 2008 13:58:45 +0000 Subject: 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. --- gdb/doc/ChangeLog | 7 +++++++ gdb/doc/gdb.texinfo | 17 +++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) (limited to 'gdb/doc') 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 + + * 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 * 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 -- cgit v1.1