CLion Tutorial – Debugger Console & Attach to Process

CLion Tutorial - Debugger Console & Attach to Process

The debugger console allows you to directly access the GDB/LLDB console from CLion during a debugging session. The debugger console is only available when the program is paused. Open the tab marked LLDB or GDB in the debugging tool window: This tab shows the debugger's output/error stream and allows you to run GDB/LLDB commands. 👇 … Read more

CLion Tutorial – Embedded GDB Server

CLion Tutorial - Embedded GDB Server

Operating System: Windows (MinGW or MinGW-w64) / Linux / macOS Required Tools: Debug probe with software, cross-compiler toolchain Build Targets: CMake / Makefile / Custom build targets To debug on the chip, you need to create a special run/debug configuration. In CLion, you can quickly create the following GDB server configurations using the "New Embedded … Read more

Debugging GDB for JiCity Encapsulation Code

Debugging GDB for JiCity Encapsulation Code

A few days ago, I participated in the algorithm competition on the JiCity platform, which focused on image recognition, behavior recognition, image segmentation, and other areas. The documentation and various tutorials are quite comprehensive, and there are sample codes and video explanations to help you get started. Additionally, there are mentors available in the WeChat … Read more

CLion Tutorial – Remote GDB Server Configuration

CLion Tutorial - Remote GDB Server Configuration

Local Operating System: macOS / Linux / Windows Remote Operating System: Any system that supports gdbserver, SSH, and SFTP Required Tools: gdbserver on the target machine Binary File Synchronization: Automatic Client Debugger: Bundled GDB / GDB from Toolchain / Custom GDB Build Targets: CMake / Makefile / Custom Build Targets Configuring the Remote GDB server … Read more

Introduction to GDB Debugging in LUNIX

Introduction to GDB Debugging in LUNIX

Introduction to LUNIX GDB Debugging Today, we will mainly learn about GDB debugging under LUNIX. Generally, in Windows, we are accustomed to various debugging buttons in IDEs, which are indeed very convenient. However, in Linux, there aren’t as many IDEs to support our debugging, but Linux does have a powerful command-line debugging tool for C/C++—GDB, … Read more

Introduction to GDB Tool in Software Development

Introduction to GDB Tool in Software Development

Application of GDB Tool GDB is a debugging tool for UNIX and UNIX-like systems.. Generally, GDB mainly helps us accomplish the following four functions: 1. Start programs, allowing developers to run programs as desired. 2. Allow the debugged program to stop at specified breakpoints. (Breakpoints can be conditional expressions) 3. When the program is stopped, … Read more

Detailed Methods and Techniques for GDB Debugging on Linux

Detailed Methods and Techniques for GDB Debugging on Linux

1. Introduction to GDB GDB is a powerful command-line debugging tool released by the GNU open-source organization for UNIX/LINUX operating systems. For a C/C++ programmer working on Linux, GDB is an essential tool; 2. GDB Usage Process Here, we will use a C program for basic demonstration, and the same applies to C++ programs; 1. … Read more

Mastering GDB Debugger in Linux Environment

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇Join our tech exchange QQ group with remark 【Official Account】 for faster access 1. Program Release Modes There are two modes for program release: debug mode and release mode. 1.1 Debug Mode Purpose: Mainly used during the development and testing phases, allowing developers to … Read more

Become a Linux Debugging Expert: Unveiling the Secrets of GDB!

Become a Linux Debugging Expert: Unveiling the Secrets of GDB!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members. Note 【Official Account】 for faster approval. 1: What is GDB / CGDB GDB is a powerful and user-friendly debugging tool for Linux that allows developers to inspect the internal state of a program during … Read more

Debugging RISC-V Linux on QEMU with Eclipse and GDB

Debugging RISC-V Linux on QEMU with Eclipse and GDB

Previously, we discussed how to run the RISC-V kernel on QEMU. Now, let’s talk about how to use Eclipse + GDB to debug the kernel on the QEMU platform. ${SIFIVE_DIR} is the local root directory of the freedom-u-sdk open-source project. 1. Configure BBL Configure the bootloader and generate debugging information. Enter the ${SIFIVE_DIR}/work/riscv-pk directory, which … Read more