Development/Score-P
Description | Content |
---|---|
module load | devel/gdb |
Availability | bwUniCluster | BwForCluster_Chemistry |
License | GPL |
Citing | n/a |
Links | Homepage | Documentation | Wiki | Mailinglists |
Graphical Interface | No |
Included modules | icc | icpc | ifort | idb |
Introduction
The GNU Debugger (GDB) is a standard debugger for serial programs although it can be used for parallel and even distributed programs with few processes too. In the past Intel supported their own idb debugger, however this has been deprecated in favor of their own port called gdb-ia.
Versions and Availability
A list of versions currently available on all bwHPC-C5-Clusters can be obtained from the
Cluster Information System CIS
{{#widget:Iframe |url=https://cis-hpc.uni-konstanz.de/prod.cis/bwUniCluster/devel/gdb |width=99% |height=120 }} On the command line interface of any bwHPC cluster you'll get a list of available versions by using the command module avail devel/gdb.
$ : bwUniCluster 2.0 $ module avail devel/gdb ------------------------ /opt/bwhpc/common/modulefiles/Core ------------------------- devel/gdb/9.2 devel/gdb/10.1 (D)
Attention!
The installed default system GDB may be a different version.
Check the default version by:
gdb --version
without loaded GDB-module.
$ module purge # clear all loaded modules $ gdb --version # this is the default version GNU gdb (GDB) Red Hat Enterprise Linux 8.2-11.el8 [...] $ module avail devel/gdb # available GDB-module ------------------------ /opt/bwhpc/common/modulefiles/Core ------------------------- devel/gdb/9.2 devel/gdb/10.1 (D)
It is not recommended to debug MPI-parallel binaries with GDB, please read MPI on how to do that.
Rather parallel debuggers like ARM Forge (formerly Allinea ddt) or Totalview ease debugging with a GUI.
Loading
It is possible to choose between several versions of GDB. By default both programs are installed. You can check the version which is currently used with:
$ gcc --version
To use a different version ofGDB, you have to load it through the module system.
For example if you need GDB 10.1, load the devel/gdb module.
How to load the desired version (e.g. GDB version 9.2):
$ module load devel/gdb/9.2
Documentation
For online documentation see the links section in the summary table at the top of this page. For local documentation consult the man page.
$ man gdb