diff options
author | Andrew Burgess <aburgess@broadcom.com> | 2013-07-25 10:16:08 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@broadcom.com> | 2013-07-25 10:16:08 +0000 |
commit | 6fbe845e0c00ca40e98aa23401e0b5490717a646 (patch) | |
tree | 6e6cd06893ba6d7525ea00f4922fdc741dc7af62 /gdb/doc | |
parent | db6a5d5f908a3139924421da1d80d8edf479646c (diff) | |
download | gdb-6fbe845e0c00ca40e98aa23401e0b5490717a646.zip gdb-6fbe845e0c00ca40e98aa23401e0b5490717a646.tar.gz gdb-6fbe845e0c00ca40e98aa23401e0b5490717a646.tar.bz2 |
Add new 'z' format for print command.
http://sourceware.org/ml/gdb-patches/2013-07/msg00235.html
gdb/ChangeLog
* NEWS: Mention new 'z' formatter.
* printcmd.c (print_scalar_formatted): Add new 'z' formatter.
(_initialize_printcmd): Mention 'z' formatter in help text of the
'x' command.
gdb/doc/ChangeLog
* gdb.texinfo (Output Formats): Mention the new 'z' formatter.
gdb/testsuite/ChangeLog
* gdb.base/printcmds.exp (test_print_int_arrays): Add tests for x,
z, o, and t output formats.
* gdb.base/display.exp: Use 'k' as an undefined format now that
'z' is defined.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 87a1f08..3c3c124 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2013-07-25 Andrew Burgess <aburgess@broadcom.com> + + * gdb.texinfo (Output Formats): Mention the new 'z' formatter. + 2013-07-17 Doug Evans <dje@google.com> * gdb.texinfo (Print Settings): Document "print raw frame-arguments". diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 4caeea5..cb393e8 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -8517,6 +8517,11 @@ Without this format, @value{GDBN} displays pointers to and arrays of strings. Single-byte members of a vector are displayed as an integer array. +@item z +Like @samp{x} formatting, the value is treated as an integer and +printed as hexadecimal, but leading zeros are printed to pad the value +to the size of the integer type. + @item r @cindex raw printing Print using the @samp{raw} formatting. By default, @value{GDBN} will |