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="2004 Free Software Foundation, Inc." 21LICENSE="GNU GPL v2" 22REVISION="3" 23SOURCE_URI="https://ftp.gnu.org/gnu/gdb/gdb-6.3a.tar.bz2" 24CHECKSUM_SHA256="f89b8f7bdddc7d9f111a1a1968b231165b8f1ff09843e4201076d0b77e0be244" 25PATCHES="gdb-6.3.patch" 26 27ARCHITECTURES="all" 28 29PROVIDES=" 30 gdb = $portVersion 31 cmd:gdb = $portVersion 32 cmd:gdbtui = $portVersion 33 devel:libbfd = $portVersion 34 devel:libiberty = $portVersion 35 devel:libopcodes = $portVersion 36 " 37REQUIRES=" 38 haiku 39 lib:libiconv 40 lib:libncurses 41 " 42 43BUILD_REQUIRES=" 44 devel:libiconv 45 devel:libncurses 46 " 47BUILD_PREREQUIRES=" 48 haiku_devel 49 cmd:awk 50 cmd:bison 51 cmd:cmp 52 cmd:flex 53 cmd:gcc 54 cmd:ld 55 cmd:m4 56 cmd:make 57 cmd:yacc 58 " 59 60PATCH() 61{ 62 sed -i "s/for i in socket; do/for i in network; do/g" gdb/configure 63} 64 65BUILD() 66{ 67 if [ $targetArchitecture = x86_gcc2 ] || [ $targetArchitecture = x86 ]; then 68 TARGET=i586-pc-haiku 69 elif [ $targetArchitecture = x86_64 ]; then 70 TARGET=x86_64-unknown-haiku 71 fi 72 runConfigure --omit-dirs "docDir dataRootDir" ./configure \ 73 --host=$TARGET --target=$TARGET --disable-nls 74 make configure-host 75 make configure-target 76 77 make $jobArgs 78} 79 80INSTALL() 81{ 82 make install 83 84 # remove libtool files 85 rm -f $libDir/*.la 86 87 prepareInstalledDevelLibs \ 88 libbfd \ 89 libopcodes \ 90 libiberty 91} 92