1SUMMARY="The GNU debugger" 2DESCRIPTION="GDB is the GNU debugger. It allows you to see what is going on \ 3'inside' another program while it executes -- or what another program was \ 4doing at the moment it crashed. 5 6GDB can do four main kinds of things (plus other things in support of \ 7these) to help you catch bugs in the act: 8 9 * Start your program, specifying anything that might affect its behavior. 10 * Make your program stop on specified conditions. 11 * Examine what has happened, when your program has stopped. 12 * Change things in your program, so you can experiment with correcting \ 13the effects of one bug and go on to learn about another. 14 15The program being debugged can be written in Ada, C, C++, Objective-C, \ 16Pascal (and many other languages). Those programs might be executing \ 17on the same machine as GDB (native) or on another machine (remote). \ 18GDB can run on most popular UNIX and Microsoft Windows variants." 19HOMEPAGE="https://sourceware.org/gdb/" 20COPYRIGHT="2018 Free Software Foundation, Inc." 21LICENSE="GNU GPL v2 22 GNU GPL v3" 23REVISION="2" 24SOURCE_URI="https://ftp.gnu.org/gnu/gdb/gdb-$portVersion.tar.xz" 25CHECKSUM_SHA256="af61a0263858e69c5dce51eab26662ff3d2ad9aa68da9583e8143b5426be4b34" 26PATCHES="gdb-$portVersion.patch" 27 28ARCHITECTURES="?all !x86_gcc2" 29 30PROVIDES=" 31 gdb = $portVersion 32 cmd:gdb = $portVersion 33 devel:libbfd = $portVersion 34 devel:libopcodes = $portVersion 35 " 36REQUIRES=" 37 haiku 38 lib:libexpat 39 lib:libiconv 40 lib:libncurses 41 lib:libpython2.7 42 lib:libz 43 " 44 45BUILD_REQUIRES=" 46 devel:libexpat 47 devel:libiconv 48 devel:libncurses 49 devel:libpython2.7 50 devel:libz 51 " 52BUILD_PREREQUIRES=" 53 haiku_devel 54 cmd:awk 55 cmd:bison 56 cmd:cmp 57 cmd:flex 58 cmd:gcc 59 cmd:ld 60 cmd:m4 61 cmd:make 62 cmd:makeinfo 63 cmd:python 64 cmd:yacc 65 " 66 67TEST_REQUIRES=" 68 cmd:runtest 69 " 70 71BUILD() 72{ 73 if [ $targetArchitecture = x86 ]; then 74 TARGET=i586-pc-haiku 75 elif [ $targetArchitecture = x86_64 ]; then 76 TARGET=x86_64-unknown-haiku 77 fi 78 79 runConfigure --omit-dirs "docDir dataRootDir" ./configure \ 80 --host=$TARGET --target=$TARGET \ 81 --disable-nls --with-system-zlib 82 83 make configure-host 84 make configure-target 85 86 make $jobArgs 87} 88 89INSTALL() 90{ 91 make install 92 93 prepareInstalledDevelLibs \ 94 libbfd \ 95 libopcodes 96 rm $developLibDir/*.la 97} 98 99TEST() 100{ 101 make check 102} 103