Debugging Core Files Using HP WDB (5900-1573; WDB 6.2; January 2011)
Table 2 Commonly Used Commands for Core File Debugging (continued)
DescriptionCommand
Debugging
Feature
The info files and info target commands print
the current target, including the names of the executable
and core dump files currently in use by GDB, and the
files from which the symbols were loaded. With HP WDB
6.0 and later versions, the output of the info target
command also displays details, such as system name,
node name, operating system release name, license level,
and machine model, for the core file. This enhancement
is available for HP-UX 11i v2 and later on Integrity
systems.
The command help target lists all possible targets
rather than current ones.
info files
info target
help target
Prints the
target that is
currently
under the
debugger
Read symbol table information from file <filename>.
The symbol-file command with no argument clears
out GDB information on the symbol table of the program,
and causes GDB to erase the contents of the convenience
variables, the value history, and all breakpoints and
auto-display expressions
symbol-file <filename>Read symbol
information
from a file
Reads additional symbol table information from the file
<filename> (when <filename> is dynamically loaded
into the program that is running.
The <address> is the memory address at which the file
is loaded. (GDB cannot detect this address, unless
specified)
You can specify up to three addresses (the addresses of
the text, data, and bss segments respectively).
add-symbol-file
<filename> <address>[-s
<section>
<sect-address> -s
<section>
<sect-address>]
Read
additional
symbol
information
Forces a core dump and creates a core image file for a
process that is running under the debugger.
If the filename is specified, it saves the dumped core file
in the file, <corefile-name> , instead of the default
file, core.<pid> (where pid is the process ID number).
dumpcore
<corefile-name>
Forcing a core
dump
Packs the core file along with the relevant executable
and libraries in a single tar file for core file debugging
on another system.
packcorePacking the
core file along
with the
associated
shared
libraries
Commands For Core File Debugging 15