Red Hat Developer Toolset 1.x User Guide - Linux
Red Hat Developer Toolset 1.x User Guide - Linux
Red Hat Developer Toolset 1.x User Guide - Linux
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Red</strong> <strong>Hat</strong> <strong>Developer</strong> <strong>Toolset</strong> <strong>1.x</strong> <strong>User</strong> <strong>Guide</strong> 79<br />
the user to find threads that match it.<br />
GDB now provides support for reading and writing a new .gdb_index section. The command gdbadd-index<br />
can be used to add .gdb_index to a file, which allows GDB to load symbols from that<br />
file faster. Note that this feature is already present in <strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> 6.1 and later.<br />
The watch command has been adapted to accept -location as an optional argument.<br />
Two new special values can now be used when specifying the current search path for<br />
libthread_db: $sdir represents the default system locations of shared libraries, and $pdir<br />
stands for the directory with the libthread that is used by the application.<br />
A new command info macros has been added. This command accepts linespec as an optional<br />
argument and can be used to display the definitions of macros at that linespec location. Note that in<br />
order to do this, the debugged program must be compiled with the -g3 command line option to have<br />
macro information available in it.<br />
A new command alias has been added. This command can be used to create an alias of an<br />
existing command.<br />
The info macro command now accepts -all and -- as valid options.<br />
To display a function parameter's entry value (that is, the value at the time of function entry), the<br />
suffix @entry can be added to the parameter. GDB now displays @entry values in backtraces, if<br />
available.<br />
New set print entry-values and show print entry-values commands have been added.<br />
The set print entry-values command accepts both, compact, default, if-needed, no,<br />
only, and preferred as valid arguments and can be used to enable printing of function<br />
arguments at function entry. The show print entry-values command can be used to determine<br />
whether this feature is enabled.<br />
New set debug entry-values and show debug entry-values commands have been added.<br />
The set debug entry-values command can be used to enable printing of debugging information<br />
for determining frame argument values at function entry and virtual tail call frames.<br />
!command has been added as an alias of shell command.<br />
The watch command now accepts mask mask_value as an argument. This can be used to create<br />
masked watchpoints.<br />
New set extended-prompt and show extended-prompt commands have been added. The<br />
set extended-prompt command enables support for a defined set of escape sequences that<br />
can be used to display various information. The show extended-prompt command can be used<br />
to determine whether the extended prompt is enabled.<br />
New set basenames-may-differ and show basenames-may-differ commands have been<br />
added. The set basenames-may-differ command enables support for source files with multiple<br />
base names. The show basenames-may-differ command can be used to determine whether<br />
this support is enabled. The default option is off to allow faster GDB operations.<br />
A new command line option -ix (or --init-command) has been added. This option acts like -x (or<br />
--command), but is executed before loading the debugged program.<br />
A new command line option -iex (or --init-eval-command) has been added. This option acts<br />
like -ex (or --eval-command), but is executed before loading the debugged program.<br />
The following changes have been made to the C++ language support since the release of the GNU<br />
Debugger included in <strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> 6.2:<br />
When debugging a template instantiation, parameters of the template are now put in scope.<br />
The following changes have been made to the Python scripting support since the release of the GNU<br />
Debugger included in <strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> 6.2:<br />
The register_pretty_printer function in module gdb.printing now takes an optional