|
|
HP WDB 5.9 Release Notes: HP-UX 11i v1, HP-UX 11i v2, and HP-UX 11i v3 > HP WDB 5.9 Release NotesWhat Is New in This Version |
|
This section describes the new features that are introduced in this version of HP WDB.
HP WDB 5.9 enables you to print and evaluate decimal floating point data types for programs running on the September 2008 release of HP-UX 11iv3, 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:
HP WDB 5.9 enables 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 commands line calls.
This prints the decimal floating point constant based on the data type 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:
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.
HP WDB 5.9 provides the following support for binary floating point data type:
If the binary floating point constant contains the letter f or l then HP WDB recognizes it as float or long double binary floating point constant. Generally a floating point constant without f or lis considered as double binary floating point constant. HP WDB 5.9 prints the variable in the specified binary floating point format. The following are the new format specifiers for binary floating point variables:
This prints the binary floating point value as float.
This prints the binary floating point value as double.
This prints the binary floating point value as long double. The new +rtc option for the chatr command enables you to automatically preload the librtc.[sl|so] runtime library. In addition to automatically preloading the librtc.[sl|so] library, it also maps the shared library as private. This enhancement simplifies the current method of explicitly preloading the appropriate librtc.[sl|so] library using the LD_PRELOAD environment variable. The +rtc<enable|disable> option is available for dynamic linker versions B.11.66 and later on HP 9000 systems, and dynamic linker versions B.12.51 and later on Integrity systems. To set the target application to preload librtc.[sl|so], enter the following command at the HP-UX prompt:
The +rtc option for the chatr simplifies the steps for batch mode and attach mode of memory and thread debugging. Run Time Checking (Memory and Thread debugging) is made available using this option. To use batch mode memory leak detection, complete the following steps:
At the end of the run, output data file is created in output_dir (if defined in rtcconfig), or the current directory. To use batch mode thread debugging, complete the following steps:
If HP WDB detects any thread error condition during the application run, the error log is output to a file in the current working directory. The output file has the following naming convention:
where: pid is the process id. This section describes the simplified steps for Run Time checking in the Attach mode using the +rtc option for the chatr command. For debugging memory after attaching GDB to a running process, complete the following steps:
For debugging threads after attaching GDB to a running process, complete the following steps:
The new compiler runtime check option +check=thread enables batch mode thread debugging features of HP WDB, without setting any other environment at runtime. +check=thread must only be used with multi-threaded programs. It is not enabled by +check=all. This feature is available only for compiler versions A.06.20 and later. Batch RTC now enables processing of the .gdbinit file. You can use the .gdbinit file to specify path settings such as dir, objectdir, and pathmap to set the path of the source and object files in case the source or object paths are different than the current directory, so that the generated RTC reports display the symbol names and line numbers correctly. This feature is optionally enabled only when the RTC_PROCESS_GDBINIT variable is set to 1. This feature has some limitations on what commands in the .gdbinit file. For more information on this feature, see the Debugging with GDB user manual and the Debugging Dynamic Memory Usage Errors Using HP WDB white paper at: |
|