Deep Dive into Linux: Master GDB for Instant Process Debugging!

Deep Dive into Linux: Master GDB for Instant Process Debugging!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members, remark 【Official Account】 for faster approval Common Usage Start: gdb File Exit: ctrl + d or quit debugging command These are the two files you need to use. Execute to generate the myexe file, … Read more

Debugging MySQL Using GDB

Debugging MySQL Using GDB

Author: Zhang Zhengjun Working at Central European Fund, a fan of Zhishutang, a database enthusiast, familiar with various databases such as RDBMS, NoSQL, NewSQL, etc. After finishing O’Reilly’s “High Performance MySQL” and Teacher Jiang’s “MySQL Technical Insider”, along with 2-3 years of practical experience, one can essentially become a DBA capable of handling problems independently.However, … Read more

A More Convenient Code Debugging Tool Than GDB: CGDB

A More Convenient Code Debugging Tool Than GDB: CGDB

From WeChat Official Account: IOT Internet of Things Town Author: Dao Ge, a veteran with over 10 years of embedded development experience, focusing on: C/C++, Embedded, Linux. Table of Contents Example Code with Bug GDB Debugging Operations CGDB Debugging Operations Others’ experiences, our ladder! CGDB is a <span>frontend</span> for <span>GDB</span>, designed to debug code in … Read more

Learning Embedded Systems From Scratch: A Detailed Roadmap

Learning Embedded Systems From Scratch: A Detailed Roadmap

Recently, while chatting with fans on Bilibili, I found out that one of them had worked at a small company for three years after graduation, doing QT development, earning only 7000 RMB per month. Now, the new graduates the company hires have starting salaries of 8000 RMB. He asked HR why the company has such … Read more

Advanced Full-Stack Development in Linux C/C++

Advanced Full-Stack Development in Linux C/C++

Advanced Full-Stack Development in Linux C/C++ Introduction In today’s rapidly advancing technology, mastering one or more programming languages has become the pursuit of many. C/C++ programming on the Linux platform, due to its efficiency, stability, and powerful performance, has become a favorite among many developers. Today, let’s explore the secrets of advanced full-stack development in … Read more

Compiling Programs Using CMake

Compiling Programs Using CMake

When we usually use CMake, it is mainly on x86 or x86_64 platforms. Let’s see how to compile programs using CMake. 1. Linux-x86 Environment Build a simple project according to the structure below. The content of Gun.h is as follows: #pragmaonce #include class Gun { private: int bullet_count; std::string type; public: Gun(std::string type) { this-> … Read more

CMake Learning Notes

CMake Learning Notes

CMake Learning Notes Chapter 1 Understanding CMake 1.1 CMake Introduction The make tool completes and automatically maintains the compilation work through a file called Makefile . The Makefile describes the compilation and linking rules of the entire project. Most IDEs have this tool, such as: Visual C++’s nmake, GNU make under Linux, QT’s qmake, etc. … Read more

Design of Linux Kernel Character Device Driver SCULL

Design of Linux Kernel Character Device Driver SCULL

SCULL (Simple Character Utility for Loading Localities) is a classic example of a character device driver in the Linux kernel, often used as an introductory project for learning Linux character device drivers. The design goal of the SCULL device is to provide a simple, purely memory-based character device driver to help developers understand the basic … Read more

Types, Differences, and Implementation of Linux Device Drivers

Types, Differences, and Implementation of Linux Device Drivers

Types, Differences, and Implementation Considerations of Linux Device Drivers In the Linux operating system, device drivers serve as the bridge between hardware devices and the operating system, providing an interface for interaction with hardware devices. Linux device drivers can be categorized into several types based on their functions and application scenarios. This article will detail … Read more

Building a Simple Calculator in Assembly Language

Building a Simple Calculator in Assembly Language

Writing a simple calculator program in assembly language can be a great learning exercise. Since assembly language is related to specific processor architectures, I will provide an example of an assembly language calculator based on the x86 architecture. Please note that this example will be very basic, supporting only integer addition and subtraction. Below is … Read more