HPlogo HP C/HP-UX Version A.10.32.30 Release Notes: For HP-UX 10.20 Systems > Chapter 1 New and Changed Features

Summary of HP WDB 1.1 Features

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

HP WDB 1.1 provides the following features in addition to the standard GDB 4.17 features:

  • Support for debugging 32-bit and 64-bit programs.

  • Support for a Terminal User Interface (TUI) in addition to the GDB line-mode interface, enabled with the -tui option

  • Support for automatic loading of debug information from object modules when an application is compiled with the +objdebug option. The benefits of this option are only available if you have installed the most recent linker patch. See “+objdebug Option”.

  • Support for debugging code in shared libraries and archive libraries

  • Support for kernel threads, including thread local storage (HP-UX 11.0 only)

  • Support for user threads on HP-UX 10.20 and 11.0

  • Support for hardware watchpoints (HP-UX 11.0 only)

  • Support for assembly-level debugging (PA-RISC 1.x and PA-RISC 2.0)

  • Support for a subset of XDB commands, enabled with the -xdb option

HP WDB 1.1 contains the following new GDB commands and subcommands:

backtrace-other-thread

Print backtrace of all stack frames for a thread with stack pointer SP and program counter PC. This command is useful in cases where the debugger does not support a user thread package fully.

tcatch event

Set a catchpoint that is enabled only for one stop. The catchpoint is automatically deleted after the first time the event is caught.

set overload-resolution {on | off}

Enable or disable overload resolution for C++ expression evaluation. The default is on.

show overload-resolution

Display current overload resolution setting for C++ expression evaluation.

set opaque-type-resolution {on | off}

Enable or disable resolution of opaque struct, class, or union types. The default is on.

show opaque-type-resolution

Display current opaque type resolution setting.

set auto-solib-add threshold

Set the autoloading size threshold (in megabytes) of shared library symbols.

show auto-solib-add

Display the autoloading size threshold of shared library symbols. MAXDSIZE defines the default threshold size.

set threadverbose {on | off}

Enables and disables the output of informational messages regarding thread creation. The default setting is on. You can set it to off to stop the display of messages.

show threadverbose

Displays whether set threadverbose is on or off.

objectdir path

Specify a colon (:) separated list of directories in which HP WDB searches for object files. These directories are added to the front of the already existing objectdir path. If a directory already existing in the objectdir path is specified, it is moved up in the objectdir path so that it is searched earlier.

HP WDB recognizes two special directory names: $cdir, which refers to the compilation directory (if available) and $cwd which tracks the HP WDB current working directory.

objectload file.c

Causes HP WDB to load the debug information for file.c immediately. The default is to load debug information from object modules on demand.

objectretry file.c

Forces HP WDB to retry loading an object file if HP WDB encounters a file error while reading an object module. File errors that might cause this include incorrect permissions, file not found, or if the objectdir path changes. By default, HP WDB does not try to read an object file after an error.

For more information about these commands, see Debugging with GDB or use the GDB help command.

© 1999 - Hewlett-Packard Development Company, L.P.