No description
  • C 51.7%
  • C++ 44.8%
  • M4 1.5%
  • Shell 1%
  • Makefile 0.4%
  • Other 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bob Rossi dd6d76d609 Fix issue #369 - build error on redhat with g++ (GCC) 4.8.5
Signed-off-by: Bob Rossi <bob@brasko.net>
2026-02-26 21:55:52 -05:00
cgdb Fix issue #369 - build error on redhat with g++ (GCC) 4.8.5 2026-02-26 21:55:52 -05:00
config Ncursesw should link with tinfow. 2020-01-30 00:01:38 -05:00
doc Add documentation for Fortran support 2024-05-18 08:31:42 -04:00
lib Port addrs from stretchy array to vector. 2024-05-23 21:20:04 -04:00
packages Update sourceforge links to github 2016-08-06 08:37:11 -04:00
testsuite Rename test directory to testsuite to fix make check 2024-05-08 19:52:08 -04:00
.gitignore Change cgdb version number shown with --version 2021-10-14 19:22:45 -04:00
.indent.pro Reformat code style with GNU indent. 2012-07-13 22:26:25 -07:00
AUTHORS Add Michael Sartain as a CGDB Author. 2017-01-06 15:00:57 -05:00
autogen.sh Change cgdb version number shown with --version 2021-10-14 19:22:45 -04:00
autorelease.sh Update copyright date and release script 2022-01-16 10:22:25 -05:00
cgdb_custom_config.h.in Move attribute macros to a single location. 2016-07-31 14:25:16 -04:00
ChangeLog Remove individual ChangeLog files. 2012-07-12 14:52:42 -07:00
configure.ac Rename test directory to testsuite to fix make check 2024-05-08 19:52:08 -04:00
CONTRIBUTING.md Reverting the Developer's Certificate of Origin to match the source 2018-04-03 06:33:10 -04:00
COPYING Initial configure work 2003-01-28 03:12:41 +00:00
FAQ Remove flex generaed parsers from revision control. 2016-08-12 06:24:47 -04:00
INSTALL git checkouts require autogen.sh in INSTALL 2017-02-01 17:53:22 -08:00
Makefile.am Rename test directory to testsuite to fix make check 2024-05-08 19:52:08 -04:00
NEWS Fix issue #369 - build error on redhat with g++ (GCC) 4.8.5 2026-02-26 21:55:52 -05:00
README.md Updated README to include secure links 2018-04-02 06:11:41 -04:00
release-todo.txt Committing cgdb-0_6_8 release. 2014-11-13 22:00:26 -05:00
roadmap.txt Fix spelling mistakes. 2016-07-22 12:42:25 -04:00

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.io

Official 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