# -*- 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
maintainers {jeremyhu @jeremyhu} openmaintainer
description GDB: The GNU Project Debugger with Apple Modifications (based on 6.3.50)
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 http://opensource.apple.com/source/gdb
supported_archs x86_64 i386
# xm.h can be created out of order
master_sites http://opensource.apple.com/tarballs/gdb
checksums rmd160 90290c3950dd06c1691a477b9ee302c00b681ed1 \
sha256 d25b056a826015e1e0ea338b9b8f03e40dce3ff4696faf95df259ae1a42698da
depends_build port:gettext port:zlib port:flex port:texinfo
depends_lib port:libiconv port:ncurses port:sqlite3
patchfiles patch-macosx-nat.c.diff
worksrcdir ${worksrcdir}/src
# https://trac.macports.org/ticket/37790
reinplace "s/-mmacosx-version-min=10.7//" \
${worksrcpath}/gdb/config/i386/macosx.mh \
${worksrcpath}/libiberty/config/mh-macosx \
${worksrcpath}/bfd/configure.host
--infodir=${prefix}/share/info \
--mandir=${prefix}/share/man \
--with-docdir=${prefix}/share/doc \
--program-suffix=-apple \