Linux
Chapter 1 gdb installation and use
Article directory
foreword
Linux development can't bypass the problem location tool. When the program runs abnormally and generates a core file, gdb is a good debugging tool. Don't talk about it, just get started
1. gdb download?
Not much nonsense, download directly, here is a download link - gdb download , what I downloaded here is gdb-9.2.tar.gz
2. Installation
1. Unzip
tar zxvf gdb-9.2.tar.gz
2. Configuration & Installation
The configuration of this version I downloaded cannot be configured in the source code path, and a new directory needs to be created. Create a new build directory here
makedir build
chmod -R 777 build
cd build
**绝对路径**/configure
make