gcc compiler and gdb debugging tool

gcc compiler GCC (GNU Compiler Collection) is a collection of free software compilers developed by the GNU Project. It supports a variety of programming languages, including C, C++, Objective-C, Fortran, Ada, and Go. GCC is a powerful, stable and reliable compiler that is widely used on various operating systems and platforms. The gcc compiler has […]

Use CMake to compile and install GDAL3.6.1 under Ubuntu, link Java, and add FileGDB driver

Use CMake to compile and install GDAL3.6.1 under Ubuntu, link with Java, and add FileGDB driver Write in front ? The first time I compiled source code under Linux, I encountered many pitfalls and almost gave up. I looked at the online tutorials and they were all old versions, not compiled using the CMake method. […]

Linux Book of Friends Debugger–Usage of gdb

1. The difference between debug and realease versions Difference Debug is a version for programmers, which adds debugging information, and is used to solve problems that arise in software or programs. realease is a version released to customers, which does not add debugging information and only needs to provide customers with a superior product usage […]

『Linux』GDB debugging

Foreword GDB is a debugging tool provided by the GNU software system community. Together with GCC, it forms a complete development environment. GDB is the standard development environment in Linux and many Unix-like systems. Generally speaking, GDB mainly completes the following four functions: Start the program: You can run the program as you like according […]

Play with Linux GDB & pdb

1. GDB debugging Use of watch -n command: # Print the current system memory usage on the terminal every 1 second watch -n 1 “cat /proc/meminfo” # Check all running processes in the current system every 1s # ps: View system processes; -e: Display all processes; -f: Full format # The ps -aux command is […]

gdb debugging core dump usage

What is coredump? Coredump is called a core dump, which is a memory snapshot of the process at the moment it suddenly crashes. When an exception occurs in a program and the exception is not caught within the process, the operating system will dump the process’s current memory, register status, running stack and other information […]

Linux debugger-gdb use and make operation

Table of Contents Preface 1.gdb debugging 1.1 Debugging operations 1.1.1 Display code snippets and run code 1.1.2 Breakpoint, cancel breakpoint and view breakpoint and run 1.1.3 Setting the constant display and canceling the constant display 1.1.4 Monitoring windows and temporarily changing variable values 2.make operation–automated build tool 2.1 Dependencies 2.2 Clean up files and execute […]

gdb+gdbserver remote debugging environment construction and debugging

[Foreword] The remote debugging (i.e. gdb + gdbserver) environment consists of the host GDB and the target machine debugging stub, and the two are connected through the serial port or TCP. Use the GDB standard serial protocol to work together to realize the monitoring and debugging functions of the system kernel and upper-layer applications on […]

Linux tools – gdb

Table of Contents 1. Introduction to gdb 2. gdb instructions 1. Check whether gdb is downloaded 2. Need clear knowledge points 3. Debugging instructions 1. Open debugging code 2. Display the code starting from a certain line 3. Breakpoints, view breakpoints, delete breakpoints, disable breakpoints, enable breakpoints 4. Process by process, statement by statement, jump […]