diff options
author | Yao Qi <yao@codesourcery.com> | 2013-06-20 00:39:11 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-06-20 00:39:11 +0000 |
commit | c898adb7b239441fd58004636f59b6722ee434cb (patch) | |
tree | c61340f1f0dd102ab40ae265c102bee63549081c /gdb/doc | |
parent | 181ff4a40d4fafdfe4aa92ad6996f01d7f453b5e (diff) | |
download | fsf-binutils-gdb-c898adb7b239441fd58004636f59b6722ee434cb.zip fsf-binutils-gdb-c898adb7b239441fd58004636f59b6722ee434cb.tar.gz fsf-binutils-gdb-c898adb7b239441fd58004636f59b6722ee434cb.tar.bz2 |
Teach -data-list-register-values to not include unavailable registers
This patch adds an option --skip-unavailable to MI command
-data-list-register-values, so that unavailable registers are not
displayed (on the context of traceframes).
The old -data-list-register-values command behaves like
-data-list-register-values x 0 8
^done,register-values=[{number="0",value="<unavailable>"},{number="8",value="0x80483de"}]
With this patch, an option --skip-unavailable is added,
-data-list-register-values --skip-unavailable x 0 8
^done,register-values=[{number="8",value="0x80483de"}]
gdb:
2013-06-20 Pedro Alves <pedro@codesourcery.com>
Yao Qi <yao@codesourcery.com>
* NEWS: Mention the new option '--skip-unavailable' of command
-data-list-register-values.
* mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
--skip-unavailable option. Adjust to use output_register.
(output_register): Add new 'skip_unavailable' parameter.
Handle it.
gdb/doc:
2013-06-20 Pedro Alves <pedro@codesourcery.com>
* gdb.texinfo (GDB/MI Data Manipulation)
<-data-list-register-values>: Document the --skip-unavailable
option.
gdb/testsuite:
2013-06-20 Yao Qi <yao@codesourcery.com>
* gdb.trace/mi-trace-unavailable.exp: Set tracepoint on 'foo'
and set an action.
(test_trace_unavailable): Test command -data-list-register-values
in the context of traceframe and with option --skip-unavailable.
* gdb.trace/trace-unavailable.c (foo): New.
(main): Call it.
* gdb.mi/gdb2549.exp: Update matching pattern.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 04e6f30..eeb096d 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2013-06-20 Pedro Alves <pedro@codesourcery.com> + + * gdb.texinfo (GDB/MI Data Manipulation) + <-data-list-register-values>: Document the --skip-unavailable + option. + 2013-06-07 Yao Qi <yao@codesourcery.com> * gdb.texinfo (Symbols): Add kindex and cindex for diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index e6ec4ff..d25cdae 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -32726,13 +32726,16 @@ For the PPC MBX board: @subsubheading Synopsis @smallexample - -data-list-register-values @var{fmt} [ ( @var{regno} )*] + -data-list-register-values + [ @code{--skip-unavailable} ] @var{fmt} [ ( @var{regno} )*] @end smallexample Display the registers' contents. @var{fmt} is the format according to which the registers' contents are to be returned, followed by an optional list of numbers specifying the registers to display. A missing list of -numbers indicates that the contents of all the registers must be returned. +numbers indicates that the contents of all the registers must be +returned. The @code{--skip-unavailable} option indicates that only +the available registers are to be returned. Allowed formats for @var{fmt} are: |