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

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

Essential Embedded C Language Macro Techniques You Must Know

Essential Embedded C Language Macro Techniques You Must Know

Word Count: 2000 Practicality Index: ⭐⭐⭐⭐⭐ 01 Macro Print Function In our embedded development, using printf to print some information is a common debugging method. However, when the amount of printed information is large, it can be difficult to know which information is printed in which function. Especially for printing exceptions, we need to quickly … Read more

Using SystemTap to Trace Custom Kernel Modules

Using SystemTap to Trace Custom Kernel Modules

One Background After reading the article “Dynamic Tracing Technology Discussion” (https://blog.openresty.com.cn/cn/dynamic-tracing/), I thought about using SystemTap to trace my own developed kernel module. However, the official documentation of SystemTap (https://sourceware.org/systemtap/documentation.html) only gives examples of tracing kernel modules by using drivers from the kernel source tree, for example: probe module(“ext3”).function(“*”) { }, and indeed, the verification … 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

The -n Option of Make Command Does Not Work

The -n Option of Make Command Does Not Work

The make command provides the -n parameter for debugging makefiles. When make is run with the -n parameter, it only prints the commands that would be executed, but does not actually execute them. For example, with the following makefile, running make all -n will print the commands to be executed but will not actually execute … Read more

Debugging Information with DEBUG Print in IAR

Debugging Information with DEBUG Print in IAR

#include “stdafx.h” #include<stdio.h> #include<stdlib.h> #include<string.h> // Whether to enable DEBUG mode //#define _DEBUG_ 0 // Not enabled #define _DEBUG_ 1 // Enabled #if _DEBUG_ #define PRINTF(…) printf(__VA_ARGS__) #else #define PRINTF(…) #endif int main() { int a, b, c; b = 1; c = 2; a = b + c; PRINTF(“a = %d\n”, a); getchar(); return … Read more