1eb8dc403SDave CobbleySUMMARY = "GNU debugger" 2eb8dc403SDave CobbleyHOMEPAGE = "http://www.gnu.org/software/gdb/" 390fd73cbSAndrew GeisslerDESCRIPTION = "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." 4eb8dc403SDave CobbleySECTION = "devel" 5*169d7bccSPatrick WilliamsDEPENDS = "expat gmp mpfr zlib ncurses virtual/libiconv ${LTTNGUST} bison-native" 6eb8dc403SDave Cobbley 7eb8dc403SDave CobbleyLTTNGUST = "lttng-ust" 8213cb269SPatrick WilliamsLTTNGUST:arc = "" 9213cb269SPatrick WilliamsLTTNGUST:aarch64 = "" 10213cb269SPatrick WilliamsLTTNGUST:mipsarch = "" 11213cb269SPatrick WilliamsLTTNGUST:sh4 = "" 12eb8dc403SDave Cobbley 13eb8dc403SDave Cobbleyinherit autotools texinfo 14eb8dc403SDave Cobbley 15eb8dc403SDave CobbleyUPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release" 16eb8dc403SDave Cobbley 17eb8dc403SDave CobbleyB = "${WORKDIR}/build-${TARGET_SYS}" 18eb8dc403SDave Cobbley 19eb8dc403SDave CobbleyEXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" 20eb8dc403SDave Cobbley 211a4b7ee2SBrad BishopEXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \ 22eb8dc403SDave Cobbley --with-curses --disable-multilib --disable-sim \ 236ce62a20SAndrew Geissler --without-guile \ 24eb8dc403SDave Cobbley ${GDBPROPREFIX} ${EXPAT} \ 25eb8dc403SDave Cobbley ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ 26eb8dc403SDave Cobbley --disable-rpath \ 27eb8dc403SDave Cobbley --disable-gas --disable-binutils \ 28eb8dc403SDave Cobbley --disable-ld --disable-gold \ 29eb8dc403SDave Cobbley --disable-gprof \ 30595f6308SAndrew Geissler --with-libgmp-prefix=${STAGING_EXECPREFIXDIR} \ 31eb8dc403SDave Cobbley" 32eb8dc403SDave Cobbley 33*169d7bccSPatrick WilliamsPACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)} python \ 34*169d7bccSPatrick Williams ${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)} \ 35*169d7bccSPatrick Williams " 36eb8dc403SDave Cobbley# Use --without-system-readline to compile with readline 5. 37eb8dc403SDave CobbleyPACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" 38e760df85SPatrick WilliamsPACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3-codecs" 39eb8dc403SDave CobbleyPACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" 40220dafdbSAndrew GeisslerPACKAGECONFIG[tui] = "--enable-tui,--disable-tui,,ncurses-terminfo-base" 41595f6308SAndrew GeisslerPACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz" 4290fd73cbSAndrew GeisslerPACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" 43eb8dc403SDave Cobbley 44eb8dc403SDave CobbleyGDBPROPREFIX = "--program-prefix=''" 45eb8dc403SDave Cobbley 466ce62a20SAndrew GeisslerDISABLE_STATIC = "" 476ce62a20SAndrew Geissler 48eb8dc403SDave Cobbleydo_configure () { 49eb8dc403SDave Cobbley # override this function to avoid the autoconf/automake/aclocal/autoheader 50eb8dc403SDave Cobbley # calls for now 51eb8dc403SDave Cobbley (cd ${S} && gnu-configize) || die "failure in running gnu-configize" 52eb8dc403SDave Cobbley oe_runconf 53eb8dc403SDave Cobbley} 54eb8dc403SDave Cobbley 55eb8dc403SDave Cobbley# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the 56eb8dc403SDave Cobbley# right bits installed by binutils. Same for bfd.info -- also from binutils. 57213cb269SPatrick Williamsdo_install:append() { 58eb8dc403SDave Cobbley rm -rf ${D}${libdir} 59eb8dc403SDave Cobbley rm -rf ${D}${includedir} 60eb8dc403SDave Cobbley rm -rf ${D}${datadir}/locale 61eb8dc403SDave Cobbley rm -f ${D}${infodir}/bfd.info 628e7b46e2SPatrick Williams rm -f ${D}${infodir}/sframe-spec.info 63eb8dc403SDave Cobbley} 64eb8dc403SDave Cobbley 65213cb269SPatrick WilliamsRRECOMMENDS:gdb:append:linux = " glibc-thread-db " 66213cb269SPatrick WilliamsRRECOMMENDS:gdb:append:linux-gnueabi = " glibc-thread-db " 67213cb269SPatrick WilliamsRRECOMMENDS:gdbserver:append:linux = " glibc-thread-db " 68213cb269SPatrick WilliamsRRECOMMENDS:gdbserver:append:linux-gnueabi = " glibc-thread-db " 69