- Infos im HLRS Wiki sind nicht rechtsverbindlich und ohne Gewähr -
- Information contained in the HLRS Wiki is not legally binding and HLRS is not responsible for any damages that might result from its use -

GDB

From HLRS Platforms
Revision as of 10:18, 1 April 2022 by Hpcchris (talk | contribs) (Created page with "{{Infobox software | description = '''GDB''' is the debugger of the GNU Project | developer = GNU | available on = (all systems) | category...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
GDB is the debugger of the GNU Project
Developer: GNU
Platforms: (all systems)
Category: Debugger
License: GPL
Website: GDB homepage


The GNU debugger (GDB) can be used to inspect problems in programs. It allows to trace and alter the execution of running programs as well as to create and inspect coredumps.

Usage

The gdb debugger is available on HLRS systems without the need to load a module.

Note: Do not forget to compile your application with debugging info (-g option).


Obtaining coredumps of crashing programs

GDB can be used to obtain a coredump of a program crash. To do so start gdb with the program and its arguments

$ gdb --args <program> <program args>

Then start program execution and run until it crashes. When the program crashed save a corefile of the crashed process via the generate-core-file command - optionally providing an output file name:

(gdb) run
(gdb) generate-core-file [file]


See also

External links