# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description GDB: The GNU Project Debugger
GDB, the GNU Project debugger, allows you to see what is going on 'inside' \
another program while it executes -- or what another program was doing at the \
moment it crashed. GDB can do four main kinds of things (plus other things \
in support of these) to help you catch bugs in the act: \
a) start your program, specifying anything that might affect its behavior, \
b) make your program stop on specified conditions, \
c) examine what has happened, when your program has stopped, \
d) change things in your program, so you can experiment with correcting \
the effects of one bug and go on to learn about another. \
The program being debugged can be written in Ada, C, C++, Objective-C, \
Pascal (and many other languages). Those programs might be executing on \
the same machine as GDB (native) or on another machine (remote). GDB \
can run on most popular UNIX and Microsoft Windows variants.
homepage https://www.gnu.org/software/gdb/
supported_archs x86_64 i386
checksums rmd160 5b0d8afa343a19b7574c2a7a7b62b89051cc90b5 \
sha256 b2266ec592440d0eec18ee1790f8558b3b8a2845b76cc83a872e39b501ce8a28 \
# these dependencies are listed under depends_lib rather than depends_build
# because gdb will link with libraries they provide if installed.
# there may be more. See variable host_libs in configure.ac.
# port:guile should also be a dependency, but currently does not build universally. (#48767)
depends_lib port:boehmgc \
--with-docdir=${prefix}/share/doc \
if {${os.platform} eq "darwin" && ${os.major} < 12} {
system "chgrp procmod ${destroot}${prefix}/bin/ggdb*"
system "chmod g+s ${destroot}${prefix}/bin/ggdb*"