GDB: The GNU Project Debugger
[bugs]
[GDB Maintainers]
[contributing]
[current git]
[documentation]
[download]
[home]
[irc]
[links]
[mailing lists]
[news]
[schedule]
[song]
[wiki]
GDB: The GNU Project Debugger
What is GDB?
GDB, the GNU Project debugger, allows you to see what is going on
`inside' another program while it executes -- or what another program
was doing at the moment it crashed.
GDB can do four main kinds of things (plus other things in support
of these) to help you catch bugs in the act:
- Start your program, specifying anything that might affect its behavior.
- Make your program stop on specified conditions.
- Examine what has happened, when your program has stopped.
- Change things in your program, so you can experiment with
correcting the effects of one bug and go on to learn about another.
The program being debugged can be written in Ada, C, C++, Objective-C,
Pascal (and many other languages). Those programs might be executing
on the same machine as GDB (native) or on another machine (remote). GDB
can run on most popular UNIX and Microsoft Windows variants.
GDB version 8.0
Version 8.0 of GDB, the GNU
Debugger, is now available for download. See the ANNOUNCEMENT for details
including changes in this release.
An errata list (PROBLEMS) and documentation
are also available.
News
- June 4th, 2017: GDB 8.0 Released!
-
The latest version of GDB, version 8.0, is available for download.
Building this version of GDB now requires the following tools:
- A C++-11 compiler (for instance, GCC 4.8 or later);
- GNU make version 3.81 or later.
Changes in this release include:
- C++: Support for rvalue references
- Python scripting enhancements:
- New functions to start, stop and access a running btrace recording.
- Rvalue reference support in gdb.Type.
- GDB commands interpreter:
- User commands now accept an unlimited number of arguments.
- The "eval" command now expands user-defined arguments.
- DWARF version 5 support
(note that its .debug_names index is not supported yet).
- GDB/MI enhancements:
- New -file-list-shared-libraries command to list the shared
libraries in the program.
- New -target-flash-erase command, to erase flash memory.
- Support for native FreeBSD/mips (mips*-*-freebsd)
- Support for the following targets:
- Synopsys ARC (arc*-*-elf32)
- FreeBSD/mips (mips*-*-freebsd)
- Miscellaneous enhancements:
- Command-line redirection now supported on MS-Windows hosts.
- Support for thread names on MS-Windows.
- Support for the PKU register on GNU/Linux.
- Support for Target descriptions on sparc32 and sparc64.
- New GDB/CLI command to erase flash memory
- rdrand and rdseed instructions record/replay support.
Support for the following features have been removed:
- Support for Java programs compiled with gcj
- Support for the following configurations:
- FreeBSD/alpha (alpha*-*-freebsd*)
- GNU/kFreeBSD/alpha (alpha*-*-kfreebsd*-gnu)
See the NEWS file for a more complete and detailed list of what this
release includes.
- Apr 17th, 2017: GDB 8.0 branch created
-
The GDB 8.0 branch (gdb-8.0-branch) has been created.
To check out a copy of the branch use:
git clone --branch gdb-8.0-branch ssh://sourceware.org/git/binutils-gdb.git
- Jan 21st, 2017: GDB 7.12.1 Released!
-
The latest version of GDB, version 7.12.1, is available for download.
This is a minor corrective release over GDB 7.12, fixing the following
issues:
- September 30, 2011: Release Mistakes in GDB Versions 6.0 - 7.3
-
A mistake has been detected in the release tar files for all
GDB releases from version 6.0 to version 7.3 (included). The mistake
has been corrected, and the FSF issued the following announcements:
- Nov 28, 2006: Reversible Debugging
-
The GDB maintainers are looking for contributors interested
in reversible debugging.
Late breaking information, such as recently added features, can be
found in the NEWS file in the gdb source tree. Old announcements are in the
news archive.
[bugs]
[GDB Maintainers]
[contributing]
[current git]
[documentation]
[download]
[home]
[irc]
[links]
[mailing lists]
[news]
[schedule]
[song]
[wiki]
Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to
contact the FSF.
This page is maintained by the GDB
developers.
Copyright Free Software Foundation, Inc., 51 Franklin St - Fifth
Floor, Boston, MA 02110-1301 USA.
Verbatim copying and distribution of this entire article is
permitted in any medium, provided this notice is preserved.
Last modified 2017-06-04.