diff options
author | Pedro Alves <palves@redhat.com> | 2011-03-15 14:05:38 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-03-15 14:05:38 +0000 |
commit | c917473769c83e9779a9e65568a2a9b2acf2fb42 (patch) | |
tree | 852e10696c603412020db05bcaba9d7afdc56e00 /gdb/doc | |
parent | 028f6515424e832ee10a1e4cb1f96ea241e2acae (diff) | |
download | gdb-c917473769c83e9779a9e65568a2a9b2acf2fb42.zip gdb-c917473769c83e9779a9e65568a2a9b2acf2fb42.tar.gz gdb-c917473769c83e9779a9e65568a2a9b2acf2fb42.tar.bz2 |
gdb/
* printcmd.c (ALL_DISPLAYS_SAFE): New.
(map_display_numbers): New.
(do_delete_display): New.
(undisplay_command): Use map_display_numbers.
(do_enable_disable_display): New.
(enable_disable_display_command): New function.
(enable_display): Delete.
(enable_display_command): New.
(disable_display_command): Reimplement.
(_initialize_printcmd): Adjust "enable display" command to use
`enable_display_command' as callback.
gdb/doc/
* gdb.texinfo (Auto Display) <undisplay, enable display, disable
display>: Explain that the commands accept number ranges.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 16 |
2 files changed, 19 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index f0fa2ca..b7f63eb 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-15 Pedro Alves <pedro@codesourcery.com> + + * gdb.texinfo (Auto Display) <undisplay, enable display, disable + display>: Explain that the commands accept number ranges. + 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Breakpoints In Python): Add description and example diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 01455d1..0eeb38c 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -7647,7 +7647,11 @@ is a common name for the program counter; @pxref{Registers, ,Registers}). @kindex undisplay @item undisplay @var{dnums}@dots{} @itemx delete display @var{dnums}@dots{} -Remove item numbers @var{dnums} from the list of expressions to display. +Remove items from the list of expressions to display. Specify the +numbers of the displays that you want affected with the command +argument @var{dnums}. It can be a single display number, one of the +numbers shown in the first field of the @samp{info display} display; +or it could be a range of display numbers, as in @code{2-4}. @code{undisplay} does not repeat if you press @key{RET} after using it. (Otherwise you would just get the error @samp{No display number @dots{}}.) @@ -7656,12 +7660,20 @@ Remove item numbers @var{dnums} from the list of expressions to display. @item disable display @var{dnums}@dots{} Disable the display of item numbers @var{dnums}. A disabled display item is not printed automatically, but is not forgotten. It may be -enabled again later. +enabled again later. Specify the numbers of the displays that you +want affected with the command argument @var{dnums}. It can be a +single display number, one of the numbers shown in the first field of +the @samp{info display} display; or it could be a range of display +numbers, as in @code{2-4}. @kindex enable display @item enable display @var{dnums}@dots{} Enable display of item numbers @var{dnums}. It becomes effective once again in auto display of its expression, until you specify otherwise. +Specify the numbers of the displays that you want affected with the +command argument @var{dnums}. It can be a single display number, one +of the numbers shown in the first field of the @samp{info display} +display; or it could be a range of display numbers, as in @code{2-4}. @item display Display the current values of the expressions on the list, just as is |