89 lines
2.1 KiB
Bash
89 lines
2.1 KiB
Bash
SUMMARY="The GNU debugger"
|
|
DESCRIPTION="GDB is the GNU debugger. It 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:
|
|
|
|
* Start your program, specifying anything that might affect its behavior.
|
|
* Make your program stop on specified conditions.
|
|
* Examine what has happened, when your program has stopped.
|
|
* 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://sourceware.org/gdb/"
|
|
COPYRIGHT="2004 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://ftp.gnu.org/gnu/gdb/gdb-6.3a.tar.bz2"
|
|
CHECKSUM_SHA256="f89b8f7bdddc7d9f111a1a1968b231165b8f1ff09843e4201076d0b77e0be244"
|
|
PATCHES="gdb-6.3.patch"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
gdb = $portVersion
|
|
cmd:gdb = $portVersion
|
|
cmd:gdbtui = $portVersion
|
|
devel:libbfd = $portVersion
|
|
devel:libiberty = $portVersion
|
|
devel:libopcodes = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libiconv
|
|
lib:libncurses
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
devel:libiconv
|
|
devel:libncurses
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:awk
|
|
cmd:bison
|
|
cmd:cmp
|
|
cmd:flex
|
|
cmd:gcc
|
|
cmd:ld
|
|
cmd:m4
|
|
cmd:make
|
|
cmd:yacc
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -i "s/for i in socket; do/for i in network; do/g" gdb/configure
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
if [ $targetArchitecture = x86_gcc2 ] || [ $targetArchitecture = x86 ]; then
|
|
TARGET=i586-pc-haiku
|
|
elif [ $targetArchitecture = x86_64 ]; then
|
|
TARGET=x86_64-unknown-haiku
|
|
fi
|
|
runConfigure --omit-dirs "docDir dataRootDir" ./configure \
|
|
--host=$TARGET --target=$TARGET --disable-nls
|
|
make configure-host
|
|
make configure-target
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs \
|
|
libbfd \
|
|
libopcodes \
|
|
libiberty
|
|
}
|