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

Common Makefile Templates for Development

Common Makefile Templates for Development

Click the "C Language and CPP Programming" above and select "Follow/Top/Star the Public Account" Useful resources delivered to you first! Recently, some friends mentioned they did not receive the daily article push. This is because WeChat has changed its push mechanism, and some friends are unable to see the articles for the day. Missing out … 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

In-Depth Study of Makefile

In-Depth Study of Makefile

In-Depth Study of Makefile In previous articles, we analyzed character device drivers together. If we have already written the driver code, what should we do next? First, we need to run make, and upon successful compilation, a globalmem.ko file will be generated. Next, we need to insert this kernel module into the kernel and use … Read more