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
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details on branch 2023Q3
gdb GNU Project Debugger
13.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 13.1_4Version of this port present on the latest quarterly branch.
Maintainer: pizzamig@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-09-05 19:21:05
Last Update: 2023-09-13 19:36:08
Commit Hash: e9b334d
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>)
  • py39: gdb
distinfo:
TIMESTAMP = 1677188925 SHA256 (gdb-13.1.tar.xz) = 115ad5c18d69a6be2ab15882d365dda2a2211c14f480b3502c6eba576e2e95a0 SIZE (gdb-13.1.tar.xz) = 23665472

Expand this list (2 items)

Collapse this list.

SHA256 (bsdjhb-libcxx-gdbpy-03d0d9b_GH0.tar.gz) = 2c1563f361d4fb59b54b1b39bff5cdf609d73962758eb05a8cdfe2c22551b259 SIZE (bsdjhb-libcxx-gdbpy-03d0d9b_GH0.tar.gz) = 6052

Collapse this list.


Packages (timestamps in pop-ups are UTC):
gdb
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest15.1_315.1_310.1_115.1_315.1_3-10.1_1-
FreeBSD:13:quarterly15.1_315.1_313.1_215.1_315.1_313.2_113.2_113.2_1
FreeBSD:14:latest15.1_315.1_312.1_215.1_315.1_313.1_2-13.1_2
FreeBSD:14:quarterly15.1_315.1_3-15.1_315.1_313.2_113.2_113.2_1
FreeBSD:15:latest15.1_315.1_3n/a15.1_3n/a14.114.114.1_2
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. gmake>=4.3 : devel/gmake
  2. makeinfo : print/texinfo
  3. pkgconf>=1.3.0_1 : devel/pkgconf
  4. python3.9 : lang/python39
Test dependencies:
  1. runtest : misc/dejagnu
  2. python3.9 : lang/python39
Runtime dependencies:
  1. python3.9 : lang/python39
Library dependencies:
  1. libexpat.so : textproc/expat2
  2. libgmp.so : math/gmp
  3. libmpfr.so : math/mpfr
  4. libzstd.so : archivers/zstd
  5. libsource-highlight.so : textproc/source-highlight
  6. libxxhash.so : devel/xxhash
  7. libintl.so : devel/gettext-runtime
  8. libiconv.so : converters/libiconv
  9. libreadline.so.8 : devel/readline
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for gdb-13.1_4: 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++11-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 (11 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://ftp.kddilabs.jp/GNU/gnu/gdb/
  6. http://mirror.navercorp.com/gnu/gdb/
  7. https://ftp.gnu.org/gnu/gdb/
  8. https://ftpmirror.gnu.org/gdb/
  9. https://mirror.netcologne.de/gnu/gdb/
  10. https://mirrors.kernel.org/gnu/gdb/
  11. https://www.nic.funet.fi/pub/gnu/gnu/gdb/
Collapse this list.

Number of commits found: 3

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
13.1_4
13 Sep 2023 19:36:08
commit hash: e9b334d7c3830f251e30b875efd56ab414db235acommit hash: e9b334d7c3830f251e30b875efd56ab414db235acommit hash: e9b334d7c3830f251e30b875efd56ab414db235acommit hash: e9b334d7c3830f251e30b875efd56ab414db235a files touched by this commit
Kyle Evans (kevans) search for other commits by this committer
devel/gdb: kgdb: fix aarch64 trapframe handling

regcache_map_entry_size() doesn't do the magic to convert size == 0 to
register_size, so we must supply sizes for all registers if we're going
to use it.

This fixes handling of the trapframe so that we can actually unwind
properly, where-as before we would end up with, e.g.,

 #6 0xffff0000004b4860 in kdb_trap (type=60, code=0, tf=<optimized out>)
  at /usr/src/sys/kern/subr_kdb.c:790
 #7 <signal handler called>
 #8 <signal handler called>
 #9 <signal handler called>
 #10 <signal handler called>
 #11 <signal handler called>

Reported by:	Mark Millard
Approved by:	jhb (implicit, kgdb maintainer)

(cherry picked from commit a22f1db084fb50880a0df90f9a0f031a7fc34921)
13.1_3
05 Sep 2023 19:20:33
commit hash: 9a2efc824de22245a2d8176e487608b9e8877001commit hash: 9a2efc824de22245a2d8176e487608b9e8877001commit hash: 9a2efc824de22245a2d8176e487608b9e8877001commit hash: 9a2efc824de22245a2d8176e487608b9e8877001 files touched by this commit
Kyle Evans (kevans) search for other commits by this committer
devel/gdb: kgdb: fixup aarch64 pcb/trapframe layout

base 1c1f31a5e5 and 2ecbbcc7cab altered the pcb and trapframe layouts in
osreldate 1400084. This version of the patch is effectively extracted
from work done by @jhb in CheriBSD's gdb fork, then ported forward to
work with the gdb 13.x program_space_data equivalent. With
this + D39951, I can again get a solid backtrace in recent main.

While we're here, remove some special handling for kthreads not yet run,
as the stack pointer is in-fact stored in pcb_sp in cpu_copy_thread and
cpu_fork.  This silences the following exception:

Python Exception <class 'gdb.error'>: Register 2 is not available

but there's not really any effect on the end result, since the thread
hasn't been scheduled yet.

Reviewed by:	jhb
Approved by:	jhb (maintainer)

(cherry picked from commit 5dd228e81c1bcb49e0a7c5eca3927df24a607a15)
13.1_2
05 Sep 2023 19:20:27
commit hash: eb87c8cabbb5a6fd99583925b7b52a242203914fcommit hash: eb87c8cabbb5a6fd99583925b7b52a242203914fcommit hash: eb87c8cabbb5a6fd99583925b7b52a242203914fcommit hash: eb87c8cabbb5a6fd99583925b7b52a242203914f files touched by this commit
Kyle Evans (kevans) search for other commits by this committer
Author: Mark Jonhston
devel/gdb: kgdb: Handle stoppcbs compat

Use __FreeBSD_version to decide whether to dereference the stoppcbs
symbol.  PORTREVISION will be bumped as part of the next commit, which
fixes another KBI breakage.

Reviewed by:	jhb, kevans
Approved by:	jhb (maintainer)

(cherry picked from commit 7e2852846872215c7d7ad36d9ea15d593bbf343e)

Number of commits found: 3