Advanced GDB Usage Techniques

Advanced GDB Usage Techniques

Custom Commands The following statement is written in ~/.gdbinit to define a custom command lmem. This command requires one parameter, which is a memory address that serves as the head of a linked list. The structure of the linked list is BlockLink_t. The function of this command is to traverse the linked list and print … Read more

A Simple Guide to Using GDB Debugger

A Simple Guide to Using GDB Debugger

Original: https://blog.csdn.net/fangye945a/article/details/85254627 When developing C/C++ projects on the ARM and Linux platforms, you will inevitably encounter some bugs in your programs. Small projects are manageable, but for large projects with extensive code, it becomes challenging to pinpoint issues. This is where using the gdb debugger can help you easily locate code bugs. Previously, I shared … Read more

CGDB: A More Convenient Debugging Tool Than GDB

CGDB: A More Convenient Debugging Tool Than GDB

Table of Contents Example Code with Bugs GDB Debugging Operations CGDB Debugging Operations Learning from Others’ Experiences! CGDB is a frontend for GDB, providing a graphical interface in the terminal for debugging code (based on ncurse), which is very convenient. Compared to GDB, it can significantly improve efficiency. This article will share the most basic … Read more

Using GDB to Inspect Program Stack Space

Using GDB to Inspect Program Stack Space

Introduction: This is a quick tutorial on how to use GDB to inspect the stack space of a C program. Word count: 7403, estimated reading time: 10 minutes https://linux.cn/article-13550-1.htmlAuthor: Julia EvansTranslator: amwps290 Yesterday, while chatting with some people, they mentioned that they didn’t really understand how the stack works and didn’t know how to inspect … Read more

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 Debugger Made Simple: A Step-by-Step Guide

GDB Debugger Made Simple: A Step-by-Step Guide

Introduction to GDB GDB (GNU Debugger) is a powerful command-line debugging tool. Generally, when developing on Windows, command-line debugging is rarely used, as debuggers are mostly integrated with compilers in IDEs. Of course, you can also directly use gcc and gdb to compile and debug our C programs on Windows. For example, MinGW (a collection … Read more

How to Call Functions from GDB

How to Call Functions from GDB

(Click the public account above, follow quickly) Compiled by: Linux China / Lv Feng, English: Julia Evans https://linux.cn/article-9588-1.html This week, I discovered that I could call C functions from gdb. This seemed cool because I previously thought that gdb was just a read-only debugging tool at best. I was surprised that gdb could call functions. … Read more

APM32F411 New Product Trial and Original Post Collection

APM32F411 New Product Trial and Original Post Collection

Jihai APM32 MCU Forum: https://bbs.21ic.com/iclist-1112-1.html *Reading Instructions: The following application cases are briefly introduced, with no specific ranking. For detailed evaluation content and related source code, please copy the original link and open it in your browser. Stack Backtrace Method for Automatic Analysis and Location of APM32 Hardfault Errors https://bbs.21ic.com/icview-3331074-1-1.html Using the stack backtrace method … Read more

Detailed Explanation of Makefile in Linux

Detailed Explanation of Makefile in Linux

👆Click the blue text "Linux Armory" at the top, then select "Set as Star" at the top right Don’t miss out on great articles, see valuable content first. 👆FollowLinux Armory, and receive hardcore Linux learning materials and code Makefile is a tool used for building and managing projects, especially suitable for C/C++ projects. It defines … Read more