Build Your Own GDB: Basic Functionality

Build Your Own GDB: Basic Functionality

What is GDB GDB stands for the GNU Project debugger, primarily used for debugging user-mode applications. According to the official documentation, GDB supports debugging applications written in the following languages: Ada Assembly C C++ D Fortran Go Objective-C OpenCL Modula-2 Pascal Rust Of course, the most common use is for debugging applications written in C/C++. … Read more

GDB Command Summary

GDB Command Summary

1. Start gdb -q: Suppress unnecessary output. file a.out: Specify the debug file. gdb –args a.out a.txt: Specify arguments. set args a.txt: Specify arguments after starting gdb. run a.txt: Run with specified arguments. start a.txt: Start with specified arguments (break at main). cd $dir; path $dir: Specify environment variables. run > a.txt: Redirect output to … Read more

Exploring the Powerful Features of GDB

Exploring the Powerful Features of GDB

Follow+Star Public Account, don’t miss the wonderful content Source | Zhihu Wei Yixiao Embedded development cannot be separated from debugging tools, and there are many debugging tools on the market, but in terms of compatibility and versatility, GDB absolutely holds a leading advantage. Today, let’s talk about this powerful GDB tool. Naked Running State: The … Read more