1eb8dc403SDave CobbleySUMMARY = "GNU debugger" 2eb8dc403SDave CobbleyHOMEPAGE = "http://www.gnu.org/software/gdb/" 3*90fd73cbSAndrew 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" 51a4b7ee2SBrad BishopDEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST} bison-native" 6eb8dc403SDave Cobbley 7eb8dc403SDave CobbleyLTTNGUST = "lttng-ust" 819323693SBrad BishopLTTNGUST_arc = "" 9eb8dc403SDave CobbleyLTTNGUST_aarch64 = "" 10eb8dc403SDave CobbleyLTTNGUST_mipsarch = "" 11eb8dc403SDave CobbleyLTTNGUST_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 \ 30eb8dc403SDave Cobbley" 31eb8dc403SDave Cobbley 32eb8dc403SDave CobbleyPACKAGECONFIG ??= "readline" 33eb8dc403SDave Cobbley# Use --without-system-readline to compile with readline 5. 34eb8dc403SDave CobbleyPACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" 35eb8dc403SDave CobbleyPACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs" 36eb8dc403SDave CobbleyPACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" 371a4b7ee2SBrad Bishop# ncurses is already a hard DEPENDS, but would be added here if it weren't 381a4b7ee2SBrad BishopPACKAGECONFIG[tui] = "--enable-tui,--disable-tui" 396ce62a20SAndrew GeisslerPACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" 40*90fd73cbSAndrew GeisslerPACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" 41eb8dc403SDave Cobbley 42eb8dc403SDave CobbleyGDBPROPREFIX = "--program-prefix=''" 43eb8dc403SDave Cobbley 446ce62a20SAndrew GeisslerDISABLE_STATIC = "" 456ce62a20SAndrew Geissler 46eb8dc403SDave Cobbleydo_configure () { 47eb8dc403SDave Cobbley # override this function to avoid the autoconf/automake/aclocal/autoheader 48eb8dc403SDave Cobbley # calls for now 49eb8dc403SDave Cobbley (cd ${S} && gnu-configize) || die "failure in running gnu-configize" 50eb8dc403SDave Cobbley oe_runconf 51eb8dc403SDave Cobbley} 52eb8dc403SDave Cobbley 53eb8dc403SDave Cobbley# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the 54eb8dc403SDave Cobbley# right bits installed by binutils. Same for bfd.info -- also from binutils. 55eb8dc403SDave Cobbleydo_install_append() { 56eb8dc403SDave Cobbley rm -rf ${D}${libdir} 57eb8dc403SDave Cobbley rm -rf ${D}${includedir} 58eb8dc403SDave Cobbley rm -rf ${D}${datadir}/locale 59eb8dc403SDave Cobbley rm -f ${D}${infodir}/bfd.info 60eb8dc403SDave Cobbley} 61eb8dc403SDave Cobbley 62eb8dc403SDave CobbleyRRECOMMENDS_gdb_append_linux = " glibc-thread-db " 63eb8dc403SDave CobbleyRRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " 64eb8dc403SDave CobbleyRRECOMMENDS_gdbserver_append_linux = " glibc-thread-db " 65eb8dc403SDave CobbleyRRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db " 66