Learn to Use GDB for Code Debugging

Learn to Use GDB for Code Debugging

Introduction: Use the GNU Debugger to solve your code issues.                                        This article contains 6312 words, estimated reading time: 8 minutes https://linux.cn/article-13203-1.htmlAuthor: Seth KenlonTranslator: Xingyu.Wang The GNU Debugger, commonly referred to by its command gdb, is an … Read more

Gdbgui: An Efficient Tool for Debugging

Gdbgui: An Efficient Tool for Debugging

In-depth understanding of gdbgui: A powerful graphical debugging toolDuring the software development process, debugging is an indispensable and important part. It helps developers identify errors in the program and ensures that the software runs stably. As a powerful graphical debugging tool, gdbgui is gradually gaining popularity among developers. 1. What is gdbguigdbgui is a graphical … Read more

Understanding GDB Debugging Principles with Visuals

Understanding GDB Debugging Principles with Visuals

1. Introduction This article discusses the renowned GDB. We won’t mention its prestigious background; like its sibling GCC, it was born with a golden key and holds an irreplaceable position in the GNU family. Every embedded development engineer has likely used gdb to debug programs; if you haven’t, it only indicates your development experience hasn’t … Read more

A Debugging Tool More Convenient Than GDB

A Debugging Tool More Convenient Than GDB

CGDB isGDB‘s frontend, which allows debugging code in a graphical form within the terminal window (based onncurse), making it very convenient. Compared toGDB, it can significantly improve efficiency. This article will share the most basic usage of CGDB. If you are hearing about it for the first time, I strongly recommend you to try it … Read more

Deep Understanding of How2Heap from Assembly Language

Deep Understanding of How2Heap from Assembly Language

The management method of ptmalloc2, the chunk structure, and the bins model have been explained very clearly in the Overview of GLIBC heap exploitation techniques and ctfwiki. This article records my learning process of heap exploitation. This series will update a chapter every day, and it is expected to complete updates for glibc2.23, glibc2.27, and … Read more

Common Pitfalls and Solutions in Linux Kernel Driver Debugging

Common Pitfalls and Solutions in Linux Kernel Driver Debugging

This article is an excellent post from the Kanxue Forum Kanxue Forum Author ID:Vinadiak 0x00 Background Recently, I have been learning Linux kernel debugging and after setting up the QEMU environment following the tutorial by Chao Sir, I was excited to start my kernel debugging journey. However, I encountered many obstacles that I couldn’t resolve … Read more

The Process of Collecting MySQL Core Dump Stack Information

The Process of Collecting MySQL Core Dump Stack Information

Whether for databases or applications, when issues arise, knowing the exception stack information can greatly assist in identifying the root cause and fundamentally resolving the problem. The stack information from MySQL can similarly aid in problem-solving. This article from the technical community, 《MySQL Fault Reporting Core Dump Collection Process》 introduces the process of collecting core … Read more

CLion Tutorial – Hex View & Mute Variables

CLion Tutorial - Hex View & Mute Variables

Hex View For integer type numeric variables, you can view the hexadecimal representation instead of or alongside the original format. The hexadecimal view for integer types is supported by GDB and LLDB debuggers on all platforms, including remote debugging and WSL scenarios. To enable the hexadecimal view, go to Settings | Build, Execution, Deployment | … Read more

CLion Tutorial – Remote Debugging Configuration

CLion Tutorial - Remote Debugging Configuration

Local Operating System: macOS / Linux / Windows for GDB, macOS / Linux for LLDB Remote Operating System: Any operating system supporting gdbserver for GDB, macOS / Linux or other operating systems supporting lldb-server for LLDB Required Tools: gdbserver or lldb-server on the target machine Binary and Symbol File Synchronization: Manual Client Debugger: Bundled GDB … Read more

Summary of Remote Development Options in CLion

Summary of Remote Development Options in CLion

CLion has several remote development options, each tailored to specific setups: Remote development using JetBrains Gateway Remote development with local sources WSL2 Docker (running locally) Two variants of gdbserver/lldb-server debugging: remote debugging (GDB/LLDB) and remote GDB server (GDB only). The following is a summary of the remote development options, which can be decided based on … Read more