Documenting the Porting of GDB 16.2 on RK3399

Documenting the Porting of GDB 16.2 on RK3399

To quickly locate program issues, it is necessary to compile gdb 16.2 on the RK3399 development board and use gdb 16.2 to debug the program. UnsetUnsetCompilation EnvironmentUnsetUnset Ubuntu 24.04 gcc-linaro-10.2.1-2021.01-x86_64_aarch64-linux-gnu UnsetUnsetPrerequisitesUnsetUnset GDB Official Website: https://sourceware.org/gdb/ Source Code Download Link: https://sourceware.org/pub/gdb/releases/?C=M;O=D The gdb 16.2 version depends on higher versions of gmp and mpfr, so these two … Read more

Using Percepio View to Trace Zephyr: A Comprehensive Guide

Using Percepio View to Trace Zephyr: A Comprehensive Guide

In 2021, I introduced the basic principles and configuration of the Zephyr tracing system in two articles: Introduction to Zephyr Tracing System – Part 1 and Configuration and Invocation Framework of Zephyr Tracing System – Part 2. At that time, Percepio only offered paid software, so I did not continue writing about how to use … Read more

A Comprehensive Guide to Debugging Rust Asynchronous Applications with GDB

A Comprehensive Guide to Debugging Rust Asynchronous Applications with GDB

Introduction to GDB The GNU Project Debugger (GDB) is a long-standing program written by Richard Stallman in 1986, supporting multiple languages including C/C++ and modern languages like Rust. GDB is a command-line application, but there are many graphical user interface front-ends and IDE integrations available. For this tutorial, we will use the command-line interface as … Read more

JTAG Debugging – GDB Example

JTAG Debugging - GDB Example

OpenOCD is used to drive the JTAG interface, typically in conjunction with GDB for code execution debugging. The usage of GDB is fundamentally no different from its use in other contexts.Some debugging techniques for GDB: Advanced Usage of GDBThere are two ways to start GDB and interact with OpenOCD: GDB communicates with OpenOCD over TCP … Read more

C++ Debugging Techniques: Using GDB for Breakpoint Debugging

C++ Debugging Techniques: Using GDB for Breakpoint Debugging

C++ Debugging Techniques: Using GDB for Breakpoint Debugging In C++ development, debugging is an indispensable part of the process. Whether you are a novice or an experienced programmer, mastering effective debugging techniques can significantly enhance development efficiency. This article will introduce how to use GDB (GNU Debugger) for breakpoint debugging, providing detailed code examples and … Read more

Analyzing ESP32 Core Dumps

Analyzing ESP32 Core Dumps

1. In my previous article, I wrote an introduction to the ESP32, and I think it is necessary to write this article, which mainly focuses on analyzing core dumps. This is similar to crash analysis in Android and Linux systems; it is interesting yet challenging. When we write code, we inevitably encounter some core dump … Read more

C Language Interview: Code Debugging and Error Handling

C Language Interview: Code Debugging and Error Handling

C Language Interview: Code Debugging and Error Handling In the software development process, debugging and error handling are crucial steps to ensure code quality. Especially in job interviews, examiners often assess candidates’ understanding of code debugging and error handling to evaluate their capabilities. This article will detail the basic debugging techniques and error handling methods … Read more

Debugging Techniques for C Language Code: Using GDB

Debugging Techniques for C Language Code: Using GDB

Debugging Techniques for C Language Code: Using GDB Debugging is an essential skill for any programmer, and in C language, the GNU Debugger (GDB) is one of the most commonly used debugging tools. This article will introduce you to how to effectively use GDB to debug C language programs. What is GDB? The GNU Debugger … Read more

Debugging Tools: Using gdb in C Language and Debugging Techniques

Debugging Tools: Using gdb in C Language and Debugging Techniques

Debugging Tools // Example code snippet for demonstration #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }</stdio.h> In this article, we will explore the usage of gdb in the C language and share some effective debugging techniques. Debugging is an essential part of the development process, allowing developers to identify and fix issues in … Read more

Debugging Tools: Using gdb for Breakpoint Debugging in C Language

Debugging Tools: Using gdb for Breakpoint Debugging in C Language

Debugging Tools: Using gdb for Breakpoint Debugging in C Language During the process of writing C programs, we often encounter various issues such as logical errors and runtime errors. To identify the root causes of these problems, debugging tools are essential. Among the many debugging tools available, the GNU Debugger (gdb) has become the preferred … Read more