In-Depth PHP Debugging with GDB

In-Depth PHP Debugging with GDB

Author: bobyzhang, Tencent IEG Operations Development Engineer There is a debug mode when compiling PHP, which disables memory optimization, alerts for memory leaks, and disables call stack optimization to allow us to see the complete PHP C-level call stack. Typically, I compile two versions of PHP (one normal and one with debug) in different directories, … Read more

5 Lesser-Known GDB Debugger Tips

5 Lesser-Known GDB Debugger Tips

Learn how to use some lesser-known features of gdb to inspect and fix your code. — Tim Waugh GNU Debugger (gdb) is a valuable tool for inspecting running processes and troubleshooting while developing programs. You can set breakpoints at specific locations (by function name, line number, etc.), enable and disable these breakpoints, display and change … Read more

Common GDB Commands Overview

Common GDB Commands Overview

(Click the public account above to quickly follow) English: Fsf, Translation: Linux China/robot527 linux.cn/article-8900-1.html If you have good articles to submit, please click → here for details Table of Contents break — Set a breakpoint at the specified line or function, abbreviated as b info breakpoints — Print a list of all non-deleted breakpoints, watchpoints, … Read more

GDB Usage Summary

GDB Usage Summary

From WeChat Official Account: Embedded and Linux Matters Starting To start gdb, simply type the gdb command in the shell. After starting, it will display the following information and show the gdb prompt. ➜ example gdb GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or … Read more

Commonly Used GDB Commands Overview

Commonly Used GDB Commands Overview

This article is compiled from “Debugging with GDB: the GNU Source-Level Debugger for GDB (GDB)” — Fsf Article Navigation ◈ Table of Contents00% ◈ break11% ◈ info breakpoints18% ◈ disable20% ◈ enable22% ◈ clear26% ◈ delete30% ◈ tbreak32% ◈ watch33% ◈ step36% ◈ reverse-step40% ◈ next42% ◈ reverse-next44% ◈ return46% ◈ finish48% ◈ until50% ◈ … 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

Become an Embedded Expert with These 100+ Open Source Projects!

Become an Embedded Expert with These 100+ Open Source Projects!

In the early stages of learning, the hardest part is finding learning materials, so today I recommend a repository that summarizes embedded open source projects. This article carefully compiles some embedded-related resources, including but not limited to programming languages, microcontrollers, open source projects, Internet of Things, operating systems, Linux and more. These materials are continuously … Read more

Makefile Learning Notes

Makefile Learning Notes

Basic Rules The Makefile is based on declarative dependencies as follows target: prerequisite prerequisite2 command target2: target command2 If you run target2, due to the declared dependencies, target will run first. It is important to note that the default target in Makefile is both a target and a local file, unless you declare it as … Read more

In-Depth Guide to Using Makefile

In-Depth Guide to Using Makefile

This article will illustrate how Makefile works using two examples. The author’s aim is to summarize the common problems beginners encounter when writing Makefiles in a concise manner. After reading this article, you should be able to start writing your own Makefile. Platform: Ubuntu 20 Tools: make, gcc What is Makefile The Makefile describes the … Read more