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 programwas doing at the moment it crashed.
GDB can do four main kinds of things (plus other things in supportof 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 withcorrecting the effects of one bug and go on to learn about another.
Determine the version of the operating system: Top menu bar AppleLogo - About This Mac will give the version, e.g., OSX Version 10.9.4 It also gives processor. Determine whether the CPU is 64 or 32 bit: In a terminal window, enter uname -a. Select a Web Site. Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
Those programs might be executing on the same machine as GDB (native),on another machine (remote), or on a simulator. GDB can run on mostpopular UNIX and Microsoft Windows variants, as well as on Mac OS X.What Languages does GDB Support?
GDB supports the following languages (in alphabetical order):- Ada
- Assembly
- C
- C++
- D
- Fortran
- Go
- Objective-C
- OpenCL
- Modula-2
- Pascal
- Rust
GDB version 10.1
Version 10.1 of GDB, the GNUDebugger, is now available for download. See the ANNOUNCEMENT for detailsincluding changes in this release.An errata list (PROBLEMS) and documentationare also available.
News
The latest version of GDB, version 10.1, is available for download.
This version of GDB includes the following changes and enhancements:
- Support for debugging new targets:
- BPF (bpf-unknown-none)
- GDBserver support for the following targets:
- ARC GNU/Linux
- RISC-V GNU/Linux
- Multi-target debugging support (experimental)
- Support for debuginfod, an HTTP server for distributing ELF/DWARF debugging information as well as source code.
- Support for debugging a 32-bit Windows program using a 64-bit Windows GDB.
- Support for building GDB with GNU Guile 3.0 and 2.2 (in addition to 2.0)
- Improved performance during startup through the use of threading during symbol table loading (an optional feature in GDB 9, now enabled by default in GDB 10).
- Various enhancements to the Python and Guile APIs
- Various TUI Mode fixes and enhancements.
- Other miscellaneous enhancements:
- Detection when attaching to a process of a mismatch between this process and the executable previously loaded into GDB.
- Support for default arguments for 'alias' commands.
- GDBserver support for the following host triplets has been removed:
- i[34567]86-*-lynxos*
- powerpc-*-lynxos*
- i[34567]86-*-nto*
- bfin-*-*linux*
- crisv32-*-linux*
- cris-*-linux*
- m32r*-*-linux*
- tilegx-*-linux*
- arm*-*-mingw32ce*
- i[34567]86-*-mingw32ce*
The GDB 10 branch (gdb-10-branch) has been created.To check out a copy of the branch use:
The latest version of GDB, version 9.2, is available for download.
This is a minor corrective release over GDB 9.1, fixing the followingissues:
- PR tui/25586 (Resizing the source/disassembly or command window produces corrupted display)
- PR gdb/25650 (GDB can't 'printf' a convenience variable holding an inferior address)
- PR build/25981 (Use of short i386 register names breaks compilation on recent Solaris 11.4)
- PR symtab/26003 (infinite loop loading symbols from separate debug objfile)
- PR build/26029 (GDB build failure on SPARC)
The GDB maintainers are looking for contributors interestedin reversible debugging.
Late breaking information, such as recently added features, can befound in the NEWS file in the gdb source tree. Old announcements are in thenews archive.Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways tocontact the FSF.
This page is maintained by the GDBdevelopers.
Gfortran Macos Catalina
Copyright Free Software Foundation, Inc., 51 Franklin St - FifthFloor, Boston, MA 02110-1301 USA.
Verbatim copying and distribution of this entire article ispermitted in any medium, provided this notice is preserved.
Last modified 2020-10-24.
Gfortran Mac Os X
Release | Windows | Linux | Mac | Solaris/UNIX | Supported Compilers | Platform Availability |
---|---|---|---|---|---|---|
R2021a (MATLAB 9.10) | Details | Details | Details | N/A | Details | Details |
R2020b (MATLAB 9.9) | Details | Details | Details | N/A | Details | Details |
R2020a (MATLAB 9.8) | Details | Details | Details | N/A | Details | Details |
R2019b (MATLAB 9.7) | Details | Details | Details | N/A | Details | Details |
R2019a (MATLAB 9.6) | Details | Details | Details | N/A | Details | Details |
R2018b (MATLAB 9.5) | Details | Details | Details | N/A | Details | Details |
R2018a (MATLAB 9.4) | Details | Details | Details | N/A | Details | Details |
R2017b (MATLAB 9.3) | Details | Details | Details | N/A | Details | Details |
R2017a (MATLAB 9.2) | Details | Details | Details | N/A | Details | Details |
R2016b (MATLAB 9.1) | Details | Details | Details | N/A | Details | Details |
R2016a (MATLAB 9.0) | Details | Details | Details | N/A | Details | Details |
R2015b (MATLAB 8.6) | Details | Details | Details | N/A | Details | N/A |
R2015a (MATLAB 8.5) | Details | Details | Details | N/A | Details | N/A |
R2014b (MATLAB 8.4) | Details | Details | Details | N/A | Details | N/A |
R2014a (MATLAB 8.3) | Details | Details | Details | N/A | Details | N/A |
R2013b (MATLAB 8.2) | Details | Details | Details | N/A | Details | N/A |
R2013a (MATLAB 8.1) | Details | Details | Details | N/A | Details | N/A |
R2012b (MATLAB 8.0) | Details | Details | Details | N/A | Details | N/A |
R2012a (MATLAB 7.14) | Details | Details | Details | N/A | Details | N/A |
R2011b (MATLAB 7.13) | Details | Details | Details | N/A | Details | N/A |
R2011a (MATLAB 7.12) | Details | Details | Details | N/A | Details | N/A |
R2010b Service Pack 2 (MATLAB) | Details | Details | Details | N/A | N/A | N/A |
R2010b Service Pack 1 (MATLAB 7.11.1) | Details | Details | Details | N/A | N/A | N/A |
R2010b (MATLAB 7.11) | Details | Details | Details | N/A | Details | N/A |
R2010a (MATLAB 7.10) | Details | Details | Details | N/A | Details | N/A |
R2009b Service Pack 1 (MATLAB 7.9) | Details | Details | Details | Details | N/A | N/A |
R2009b (MATLAB 7.9) | Details | Details | Details | Details | Details | N/A |
R2009a (MATLAB 7.8) | Details | Details | Details | Details | Details | N/A |
R2008b (MATLAB 7.7) | Details | Details | Details | Details | Details | N/A |
R2008a (MATLAB 7.6) | Details | Details | Details | Details | Details | N/A |
R2007b (MATLAB 7.5) | Details | Details | Details | Details | Details | N/A |
R2007a (Polyspace products, version 4.2) | Details | Details | N/A | Details | N/A | N/A |
R2007a (MATLAB 7.4) | Details | Details | Details | Details | Details | N/A |
R2006b (MATLAB 7.3) | Details | Details | Details | Details | Details | N/A |
R2006a (MATLAB 7.2) | Details | Details | Details | Details | Details | N/A |
R14 Service Pack 3 (MATLAB 7.1) | Details | Details | Details | Details | Details | N/A |
R14 Service Pack 2 (MATLAB 7.0.4) | Details | Details | Details | Details | Details | N/A |
R14 Service Pack 1 (MATLAB 7.0.1) | Details | Details | Details | Details | Details | N/A |
R14 (MATLAB 7.0) | Details | Details | Details | Details | Details | N/A |
R13 (MATLAB 6.5) | Details | Details | Details | Details | Details | N/A |
R12 (MATLAB 6.0) | Details | Details | N/A | Details | Details | N/A |
R11 (MATLAB 5.3) | Details | Details | N/A | Details | Details | N/A |