Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgdb/cgdb
Console front-end to the GNU debugger
https://github.com/cgdb/cgdb
Last synced: 3 days ago
JSON representation
Console front-end to the GNU debugger
- Host: GitHub
- URL: https://github.com/cgdb/cgdb
- Owner: cgdb
- License: gpl-2.0
- Created: 2012-05-04T23:06:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-08-13T11:09:37.000Z (4 months ago)
- Last Synced: 2024-12-12T01:18:54.315Z (10 days ago)
- Language: C
- Size: 7.85 MB
- Stars: 1,737
- Watchers: 54
- Forks: 179
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- Contributing: CONTRIBUTING.md
- License: COPYING
- Roadmap: roadmap.txt
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-tuis - cgdb - end to the GNU debugger (Table of Contents)
README
# CGDB
CGDB is a very lightweight console frontend to the GNU debugger. It provides
a split screen interface showing the GDB session below and the program's
source code above. The interface is modelled after vim's, so vim users should
feel right at home using it.Screenshot, downloads, and documentation are available from the home page:
https://cgdb.github.ioOfficial source releases are available here:
https://cgdb.me/files/## Build Instructions
### Dependencies
You must have the following packages installed.
- sh
- autoconf
- automake
- aclocal
- autoheader
- libtool
- flex
- bison
- gcc/g++ (c11/c++11 support)### Preparing the configure
Run ./autogen.sh in the current working directory to generate the configure
script.### Running configure, make and make install
You can run ./configure from within the source tree, however I usually run
configure from outside the source tree like so,
```
mkdir ../build
cd ../build
../cgdb/configure --prefix=$PWD/../prefix
make -srj4
make install
```CGDB is a C11/C++11 project, just like GDB.
Since the standard is relatively new, your gcc/g++ may support it out of
the box, or may require the -std=c11 and -std=c++11 flags.
You can see how to set these flag in the below configure invocation.I typically enable more error checking with the build tools like so,
> YFLAGS="-Wno-deprecated" CFLAGS="-std=c11 -g -O0 -Wall -Wextra -Wshadow -pedantic -Wno-unused-parameter" CXXFLAGS="-std=c++11 -g -O0 -Wall -Wextra -Wshadow -Werror -pedantic -Wmissing-include-dirs -Wno-unused-parameter -Wno-sign-compare -Wno-unused-but-set-variable -Wno-unused-function -Wno-variadic-macros" ../cgdb/configure --prefix=$PWD/../prefix
If you like to have a silent build, and the libtool link lines are bothering
you, you can set this environment variable to suppress libtools printing of
the link line,
> LIBTOOLFLAGS=--silent