diff options
author | Luis Machado <luisgpm@br.ibm.com> | 2008-01-09 13:47:59 +0000 |
---|---|---|
committer | Luis Machado <luisgpm@br.ibm.com> | 2008-01-09 13:47:59 +0000 |
commit | 0aea4bf3547a3d9eb1dfdd0d6ee692e9db6a13f2 (patch) | |
tree | cd8b5ba75b2b3020421ca72704e844c3451e6cec /gdb/doc | |
parent | d2e2e64908d10fe34d4c6763c92c21cd29ac4a80 (diff) | |
download | gdb-0aea4bf3547a3d9eb1dfdd0d6ee692e9db6a13f2.zip gdb-0aea4bf3547a3d9eb1dfdd0d6ee692e9db6a13f2.tar.gz gdb-0aea4bf3547a3d9eb1dfdd0d6ee692e9db6a13f2.tar.bz2 |
* printcmd.c (printf_command): Add seen_big_h, seen_big_d and
seen_double_big_d, treat the new H, D, and DD modifiers as length
modifiers.
* doc/gdb.texinfo (Output): Update documentation on using printf with DFP
types.
* testsuite/gdb.base/printcmds.exp (test_printf_with_dfp): Update
printf calls with required float modifiers.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index f1ca784..613a5b0 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2008-01-09 Luis Machado <luisgpm@br.ibm.com> + + * gdb.texinfo (Output): Update documentation on using printf with DFP + types. + 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.texinfo (C and C++): Add Decimal Floating Point format diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index da05dcc..519b10b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -16693,7 +16693,8 @@ single character. Octal and hexadecimal escape sequences are not supported. Additionally, @code{printf} supports conversion specifications for DFP -(@dfn{Decimal Floating Point}) types using the following conversion +(@dfn{Decimal Floating Point}) types using the following length modifiers +together with a floating point specifier. letters: @itemize @bullet @@ -16708,7 +16709,7 @@ letters: @end itemize If the underlying @code{C} implementation used to build @value{GDBN} has -support for the three conversion letters for DFP types, other modifiers +support for the three length modifiers for DFP types, other modifiers such as width and precision will also be available for @value{GDBN} to use. In case there is no such @code{C} support, no additional modifiers will be @@ -16716,7 +16717,7 @@ available and the value will be printed in the standard way. Here's an example of printing DFP types using the above conversion letters: @smallexample -printf "D32: %H - D64: %D - D128: %DD\n",1.2345df,1.2E10dd,1.2E1dl +printf "D32: %Hf - D64: %Df - D128: %DDf\n",1.2345df,1.2E10dd,1.2E1dl @end smallexample @end table |