14.23.1.1 Printing Decimal floating point constant

(gdb) print <num><df/dd/dl/DF/DD/DL> df, DF - _Decimal32

dd, DD - _Decimal64 dl, DL - _Decimal128

This prints the decimal floating point constant based on the data type.

14.23.1.2 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.

14.23.2 Printing NaT Registers

On Integrity systems, following is the command to print the NaT bit corresponding to a register:

print $natr<reg_nbr>

where, reg_nbr represents the NaT bit corresponding to a register.

Example 14-2 Sample Commands to Print NaT Registers

Following are sample commands to print NaT registers:

(gdb) p $natr32

$1 = 0 '\000' (gdb) p $natr33 $2 = 0 '\000' (gdb) p $natr39 $3 = 0 '\000'

14.23.3 Handling Decimal Floating Point Data types

GDB supports decimal floating point values in command line call of functions that contain decimal floating point arguments and which return decimal floating point arguments.

(gdb) print func1(1.2dd)

14.23.4 Evaluating Decimal Floating Point data types

HP WDB versions 5.9 and above enable you to evaluate the decimal floating point variable and displays the output. Use the commonly used GDB commands for evaluating and displaying expressions, such as print to evaluate the decimal floating point variable.

214 HP-UX Configuration-Specific Information

Page 214
Image 214
HP gnu source-level debugger 5992-4701 manual Printing NaT Registers, Handling Decimal Floating Point Data types