🌐
GeeksforGeeks
geeksforgeeks.org › linux-unix › gdb-command-in-linux-with-examples
gdb command in Linux with examples - GeeksforGeeks
September 2, 2024 - For example, in the above execution, the breakpoint is kept at function findSquare and the program was executed with the arguments "1 10 100". When the function is called initially with a = 1, the breakpoint happens. Now we create a checkpoint and hence gdb returns a process id(4272), keeps it in the suspended mode and resumes the original thread once the continue command is invoked.
🌐
GNU Project
sourceware.org › gdb
GDB: The GNU Project Debugger
GDB can run on most popular UNIX and Microsoft Windows variants, as well as on macOS.
Discussions

How many of you actually use GDB from the terminal?
I use it in the terminal, but unless I'm just getting a backtrace from a core dump (most common use case), I usually press Ctrl-X A to enable eXtra-Awesome mode (I don't think it's actually called eXtra-Awesome mode, but that's how I remember the keystroke). I very rarely am stepping through code with gdb though, I tend to rely on printf's or just thinking really hard more often. Edit: looked it up, it's apparently called TUI mode More on reddit.com
🌐 r/C_Programming
79
87
February 9, 2022
Seer – a GUI front end to GDB for Linux
FINALLY A GUI DEBUGGER AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA *explodes in excitement* Yes this is valid because it seems CLI is king, but certainly not the king of usability. A GUI is VERY MUCH APPRECIATED. Yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay! More on reddit.com
🌐 r/linux
41
317
October 3, 2022
Tug: GDB Frontend made with Dear ImGui
This is similar to gf2: https://github.com/nakst/gf More on reddit.com
🌐 r/linux
5
27
November 26, 2023
Debugging with gdb - Fixing a NULL Pointer Dereference in dhcpcd
Good article. Thanks for sharing! More on reddit.com
🌐 r/linux
2
19
May 12, 2023
🌐
Linux Man Pages
man7.org › linux › man-pages › man1 › gdb.1.html
gdb(1) - Linux manual page
The purpose of a debugger such as GDB is to allow 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.
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_developer_toolset › 9 › html › user_guide › chap-gdb
Chapter 8. GNU Debugger (GDB) | User Guide | Red Hat Developer Toolset | 9 | Red Hat Documentation
This starts the gdb debugger in interactive mode and displays the default prompt, (gdb). To quit the debugging session and return to the shell prompt, run the following command at any time: ... Copy to Clipboard Copied! ... Note that you can execute any command using the scl utility, causing it to be run with the Red Hat Developer Toolset binaries used in preference to the Red Hat Enterprise Linux system equivalent.
🌐
Baeldung
baeldung.com › home › scripting › debugging programs using the gdb command
Debugging Programs Using the GDB Command | Baeldung on Linux
March 18, 2024 - Since we’re going to do post-release debugging, we should first compile our example. To that end, we’ll use gcc (GNU C Compiler). To make full use of GDB, it’s best we compile with the -g or -ggdb flags to gcc.
🌐
Brendan Gregg
brendangregg.com › blog › 2016-08-09 › gdb-example-ncurses.html
gdb Debugging Full Example (Tutorial): ncurses
August 9, 2016 - This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86\_64-linux-gnu". Type "show configuration" for configuration details.
🌐
Kali Linux
kali.org › tools › gdb
gdb | Kali Linux Tools
3 days ago - GNU Debugger GDB is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining where errors occurred. Currently, gdb supports C, C++, D, Objective-C, Fortran, Java, OpenCL C, Pascal, ...
Find elsewhere
🌐
TutorialsPoint
tutorialspoint.com › unix_commands › gdb.htm
gdb Command in Linux
gdb, short for GNU Debugger, is a command used in Linux to debug programs written in languages like C, C++ and Fortran. With gdb command, you can run your programs step-by-step, set breakpoints to pause execution and inspect variables to understand the program behavior at different stages. Doing thi

source-level debugger

GNU_gdb_12.1_screenshot.png
The GNU Debugger (GDB) is a portable debugger that runs on many Unix-like systems and works for many programming languages, including Ada, Assembly, C, C++, D, Fortran, Haskell, Go, Objective-C, OpenCL C, … Wikipedia
Factsheet
Developer GNU Project
Initial release 1986; 39 years ago (1986)
Stable release 16.3
/ 20 April 2025
Factsheet
Developer GNU Project
Initial release 1986; 39 years ago (1986)
Stable release 16.3
/ 20 April 2025
🌐
Wikipedia
en.wikipedia.org › wiki › GNU_Debugger
GNU Debugger - Wikipedia
1 month ago - The GNU Debugger (GDB) is a portable debugger that runs on many Unix-like systems and works for many programming languages, including Ada, Assembly, C, C++, D, Fortran, Haskell, Go, Objective-C, OpenCL C, Modula-2, Pascal, Rust, and partially others.
🌐
GNU
gnu.org › software › gdb › gdb.html
GNU Debugger (GDB)
PR breakpoints/27009 ([s390] GDB branches randomly for BC instruction while displaced stepping) PR tdep/27015 (ARC: "eret" value is collected from the wrong data in register cache) PR backtrace/27147 ([GNU/Linux, sparc64] GDB is unable to print full stack trace (got "previous frame inner to ...
🌐
Linux From Scratch
linuxfromscratch.org › blfs › view › svn › general › gdb.html
GDB-16.3
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.
🌐
Linux Man Pages
linux.die.net › man › 1 › gdb
gdb(1): GNU Debugger - Linux man page
GDB is invoked with the shell command gdb. Once started, it reads commands from the terminal until you tell it to exit with the GDB command quit.
🌐
Linux Kernel
kernel.org › doc › html › next › dev-tools › gdb-kernel-debugging.html
Debugging kernel and modules via gdb — The Linux Kernel documentation
The kernel debugger kgdb, hypervisors like QEMU or JTAG-based hardware interfaces allow to debug the Linux kernel and its modules during runtime using gdb. Gdb comes with a powerful scripting interface for python. The kernel provides a collection of helper scripts that can simplify typical ...
🌐
UCSD
cseweb.ucsd.edu › classes › fa09 › cse141 › tutorial_gcc_gdb.html
Tutorial of gcc and gdb
All program to be debugged in gdb must be compiled by gcc with the option "-g" turning on.
🌐
Sergioprado
sergioprado.blog › home › debugging the linux kernel with gdb
Debugging the Linux kernel with GDB - sergioprado.blog
January 17, 2024 - GDB is a powerful and versatile tool for debugging C and C++ programs, including the Linux kernel. However, debugging a kernel is more complex than debugging user-space applications due to the kernel’s low-level nature and its direct interaction ...
🌐
Medium
medium.com › holberton-school › reverse-engineering-using-linux-gdb-a99611ab2d32
Reverse-engineering: Using Linux GDB | by Rick Harris
May 20, 2016 - GDB is a tool developed for Linux systems with the goal of helping developers identify sources of bugs in their programs.
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › how-to-download-the-gdb-debugger-4175727707
[SOLVED] How to download the GDB debugger
August 4, 2023 - I haven’t been able to download the GDB debugger successfully for my AMD64/x86-64 Linux Debian box. I downloaded a .tar.xz file from somewhere
🌐
GeeksforGeeks
geeksforgeeks.org › c language › gdb-step-by-step-introduction
GDB (Step by Step Introduction) - GeeksforGeeks
January 10, 2025 - In this article we have discussed GDB (GNU Debugger) which is a powerful tool in Linux used for debugging C programs. We have discussed some of the following steps so that we can compile your code with debugging information, run GDB, set breakpoint, ...