Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)
Enhancement to the info shared Command
HP WDB 6.0 and later versions provide the enhanced info shared command to display the
global pointer (gp) values along with text start, text end, data start, and data end values of the
shared library. Following is a sample output of the info shared command with the gp values:
tstart tend dstart dend gp
/usr/lib/hpux32/dld.so
0x2000000065858000 0x20000000658fb080 0x2000000065853000 0x2000000065857a38 0x2000000065855720
/usr/lib/hpux32/libstd_v2.so.1
0x20000000656ab000 0x200000006584bfc0 0x200000006569d000 0x20000000656aac28 0x20000000656a6d78
Debugging support for Decimal Floating Point data type
HP WDB versions 5.9 and above enable you to print and evaluate decimal floating point data
types for programs running on the September 2008 release of HP-UX 11i v3, Integrity systems.
This feature is available only for compiler versions A.06.20 and later.
The various features supported for decimal floating point data types are as follows:
• Printing Decimal Floating point data types
Printing Decimal floating point constant◦
◦ Printing Decimal floating point variable
• Handling Decimal Floating Point data types
• Evaluating Decimal Floating Point data types
◦ Printing Type of Decimal floating point data type.
Printing Decimal Floating point data types
HP WDB versions 5.9 and above enable you to print a decimal floating point data type constant
or variable. It handles and prints decimal floating point constant or variable when you use common
GDB commands such as stack trace and command-line calls.
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.
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.
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)
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.
162 HP-UX Configuration-Specific Information