HP WDB 5.9 Release Notes
This prints the decimal floating point constant based on the data type
Printing Decimal floating point variable
(gdb) print/<fmt> <var-name>
<fmt> = df, dd, dl
<var-name> - variable name
This prints the decimal floating point variable. If you specify format fmt then it prints
the variable based on its data type.
Evaluate Decimal floating point data types
HP WDB 5.9 enables you to evaluate the decimal floating point variable and display
the output. Use the commonly used gdb commands for evaluating and displaying
expressions such as print to evaluate the decimal floating point variable.
HP WDB supports:
• Evaluation of expressions with decimal floating point constants and variables.
• Setting or assignment of decimal floating point constant or variable.
• Arithmetic operations such as addition, subtraction, multiplication, division, and
negation with decimal floating point constants or variables.
• Comparison operations such as ==, !=, >, >=, <, <= with decimal floating
point constants or variables.
• Conversion between data types during assignment, arithmetic and comparison
operations and while printing values in specified format.
Printing Type of DFP variable
(gdb) ptype <dfp-const>/<dfp-var>
It prints the type of the DFP variable or constant.
HP WDB handles exceptions such as overflow, infinity and division by zero for decimal
floating point data type.
HP WDB handles finite, infinite and NaN (Not a Number) values of decimal floating
point data type.
8