notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details on branch 2026Q1
gdb GNU Project Debugger
15.1_4 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 15.1_4Version of this port present on the latest quarterly branch.
Maintainer: pizzamig@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-01-14 19:03:06
Last Update: 2026-01-14 19:01:59
Commit Hash: 26b978c
License: GPLv3
WWW:
https://www.gnu.org/software/gdb/
Description:
GDB is a source-level debugger for Ada, C, C++, Objective-C, Pascal and many other languages. GDB can target (i.e., debug programs running on) more than a dozen different processor architectures, and GDB itself can run on most popular GNU/Linux, Unix and Microsoft Windows variants.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • gdb>0:devel/gdb
To install the port:
cd /usr/ports/devel/gdb/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/gdb
  • pkg install gdb
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: gdb
Package flavors (<flavor>: <package>)
  • py311: gdb
distinfo:
TIMESTAMP = 1722632408 SHA256 (gdb-15.1.tar.xz) = 38254eacd4572134bca9c5a5aa4d4ca564cbbd30c369d881f733fb6b903354f2 SIZE (gdb-15.1.tar.xz) = 24295712

Expand this list (2 items)

Collapse this list.

SHA256 (bsdjhb-libcxx-gdbpy-4bb8585_GH0.tar.gz) = f182d52b7a88260846ce65a451e9631a04dceaeb738889156e1168fa351306ea SIZE (bsdjhb-libcxx-gdbpy-4bb8585_GH0.tar.gz) = 6234

Collapse this list.


Packages (timestamps in pop-ups are UTC):
gdb
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest15.1_415.1_410.1_115.1_315.1_4n/an/an/a
FreeBSD:13:quarterly15.1_415.1_413.1_215.1_315.1_4n/an/an/a
FreeBSD:14:latest15.1_415.1_412.1_215.1_315.1_413.1_2-13.1_2
FreeBSD:14:quarterly15.1_415.1_4-15.1_315.1_413.2_113.2_113.2_1
FreeBSD:15:latest15.1_415.1_4n/a15.1_3n/an/a14.114.1_2
FreeBSD:15:quarterly15.1_415.1_4n/a-n/an/a--
FreeBSD:16:latest15.1_415.1_4n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. gmake>=4.4.1 : devel/gmake
  2. makeinfo : print/texinfo
  3. pkgconf>=1.3.0_1 : devel/pkgconf
  4. gettext-runtime>=0.26 : devel/gettext-runtime
  5. python3.11 : lang/python311
Test dependencies:
  1. runtest : misc/dejagnu
  2. python3.11 : lang/python311
Runtime dependencies:
  1. python3.11 : lang/python311
Library dependencies:
  1. libexpat.so : textproc/expat2
  2. libgmp.so : math/gmp
  3. libmpfr.so : math/mpfr
  4. libzstd.so : archivers/zstd
  5. libboost_regex.so : devel/boost-libs
  6. libsource-highlight.so : textproc/source-highlight
  7. libxxhash.so : devel/xxhash
  8. libintl.so : devel/gettext-runtime
  9. libiconv.so : converters/libiconv
  10. libreadline.so.8 : devel/readline
This port is required by:
for Run
  1. editors/lazarus-devel
  2. editors/lazarus-gtk3-devel
  3. editors/lazarus-qt5-devel
  4. editors/lazarus-qt6-devel

Configuration Options:
===> The following configuration options are available for gdb-15.1_4: DEBUGINFOD=off: Build gdb with debuginfod server support GDB_LINK=on: Create /usr/local/bin/gdb symlink GUILE=off: Guile extension language support KGDB=on: Kernel debugging support NLS=on: Native Language Support PYTHON=on: Python bindings or support SOURCE_HIGHLIGHT=on: Syntax highlighting support TUI=on: Text User Interface support XXHASH=on: Use xxHash for hashing (faster) ====> Command line editing via libreadline: you have to select exactly one of them BUNDLED_READLINE=off: from gdb distfile PORT_READLINE=on: from devel/readline port ====> Encoding conversion support via iconv: you have to select exactly one of them PORT_ICONV=on: use libiconv, with wider charset support SYSTEM_ICONV=off: use libc iconv, with no wchar support ====> zlib compression support: you have to select exactly one of them BUNDLED_ZLIB=off: from gdb distfile SYSTEM_ZLIB=on: use system zlib ===> Use 'make config' to modify these settings
Options name:
devel_gdb
USES:
compiler:c++17-lang cpe gmake libtool makeinfo pkgconfig tar:xz gettext-runtime iconv:wchar_t readline python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (10 items)
Collapse this list.
  1. ftp://ftp.fu-berlin.de/unix/gnu/gdb/
  2. ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/gdb/
  3. ftp://mirrors.rit.edu/gnu/gdb/
  4. http://ftp.halifax.rwth-aachen.de/gnu/gdb/
  5. http://mirror.navercorp.com/gnu/gdb/
  6. https://ftp.gnu.org/gnu/gdb/
  7. https://ftpmirror.gnu.org/gdb/
  8. https://mirror.netcologne.de/gnu/gdb/
  9. https://mirrors.kernel.org/gnu/gdb/
  10. https://www.nic.funet.fi/pub/gnu/gnu/gdb/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
15.1_4
14 Jan 2026 19:01:59
commit hash: 26b978c64c9d32be6e74d02873e6c2a2d0cd6565commit hash: 26b978c64c9d32be6e74d02873e6c2a2d0cd6565commit hash: 26b978c64c9d32be6e74d02873e6c2a2d0cd6565commit hash: 26b978c64c9d32be6e74d02873e6c2a2d0cd6565 files touched by this commit
Dimitry Andric (dim) search for other commits by this committer
devel/gdb: fix build with clang 21

Compiling devel/gdb with clang 21 results in errors similar to:

   
/wrkdirs/usr/ports/devel/gdb/work-py311/gdb-15.1/gdb/../gdbsupport/enum-flags.h:97:34:
error: non-type template argument is not a constant expression
       97 |     integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T
(0))>::type
          |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   
/wrkdirs/usr/ports/devel/gdb/work-py311/gdb-15.1/gdb/../gdbsupport/enum-flags.h:134:20:
note: in instantiation of template class 'enum_underlying_type<ui_out_flag>'
requested here
      134 |   typedef typename enum_underlying_type<enum_type>::type
underlying_type;
          |                    ^
    /wrkdirs/usr/ports/devel/gdb/work-py311/gdb-15.1/gdb/ui-out.h:385:16: note:
in instantiation of template class 'enum_flags<ui_out_flag>' requested here
      385 |   ui_out_flags m_flags;
          |                ^
   
/wrkdirs/usr/ports/devel/gdb/work-py311/gdb-15.1/gdb/../gdbsupport/enum-flags.h:97:52:
note: integer value -1 is outside the valid range of values [0, 15] for the
enumeration type 'ui_out_flag'
       97 |     integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T
(0))>::type
(Only the first 15 lines of the commit message are shown above View all of this commit message)

Number of commits found: 1