Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

84.3. gdb-17.2

GNU Debugger

17.2-1 · GPL-3.0-or-later · 8.7 SBU · 37.2 MiB, 170 files · 41_system, 373 of 1047 · ports/core/devtools/gdb

Homepage: https://www.gnu.org/software/gdb/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/devtools.txt:

gdb is here, not in 40_lang, because it links guile.

Depends on: ncurses, readline, expat, python3, mpfr, gmp, zstd, xz, zlib, xxhash, python3-pygments, guile.

Required by (3): gef, kdevelop, qt-creator.

Sources: gdb-17.2.tar.xz (23.5 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install gdb'

build.sh:

./configure \
	--prefix=/usr \
	--sysconfdir=/etc \
	--mandir=/usr/share/man \
	--infodir=/usr/share/info \
	--enable-targets=all \
	--disable-sim \
	--with-system-readline \
	--with-system-zlib \
	--with-python=/usr/bin/python3 \
	--with-expat=yes \
	--with-lzma=yes \
	--with-zstd=yes \
	--with-xxhash=yes \
	--with-babeltrace=no \
	--with-guile=guile-3.0 \
	--disable-source-highlight \
	--with-intel-pt=no \
	--with-amd-dbgapi=no \
	--with-debuginfod=no \
	--enable-tui \
	--disable-nls \
	--disable-werror
make CPPFLAGS="-DHAVE_ASM_TERMIOS_H=1 -DTCGETS2=0x802c542a -DTCSETS2=0x402c542b"
make -C gdb DESTDIR=$PKG install
make -C gdbserver DESTDIR=$PKG install

Programs: gcore, gdb, gdb-add-index, gdbserver, gstack.

Libraries: libinproctrace.so.

Directories: /usr/include/gdb, /usr/share/gdb/guile, /usr/share/gdb/python/gdb, /usr/share/gdb/syscalls, /usr/share/gdb/system-gdbinit, /usr/share/licenses/gdb.