1SUMMARY = "GNU debugger" 2HOMEPAGE = "http://www.gnu.org/software/gdb/" 3DESCRIPTION = "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." 4SECTION = "devel" 5DEPENDS = "expat gmp mpfr zlib ncurses virtual/libiconv ${LTTNGUST} bison-native" 6 7LTTNGUST = "lttng-ust" 8LTTNGUST:arc = "" 9LTTNGUST:aarch64 = "" 10LTTNGUST:mipsarch = "" 11LTTNGUST:sh4 = "" 12 13inherit autotools texinfo 14 15UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release" 16 17B = "${WORKDIR}/build-${TARGET_SYS}" 18 19EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" 20 21EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \ 22 --with-curses --disable-multilib --disable-sim \ 23 --without-guile \ 24 ${GDBPROPREFIX} ${EXPAT} \ 25 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ 26 --disable-rpath \ 27 --disable-gas --disable-binutils \ 28 --disable-ld --disable-gold \ 29 --disable-gprof \ 30 --with-libgmp-prefix=${STAGING_EXECPREFIXDIR} \ 31" 32 33PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)} python \ 34 ${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)} \ 35 " 36# Use --without-system-readline to compile with readline 5. 37PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" 38PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3-codecs" 39PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" 40PACKAGECONFIG[tui] = "--enable-tui,--disable-tui,,ncurses-terminfo-base" 41PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz" 42PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" 43 44GDBPROPREFIX = "--program-prefix=''" 45 46DISABLE_STATIC = "" 47 48do_configure () { 49 # override this function to avoid the autoconf/automake/aclocal/autoheader 50 # calls for now 51 (cd ${S} && gnu-configize) || die "failure in running gnu-configize" 52 oe_runconf 53} 54 55# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the 56# right bits installed by binutils. Same for bfd.info -- also from binutils. 57do_install:append() { 58 rm -rf ${D}${libdir} 59 rm -rf ${D}${includedir} 60 rm -rf ${D}${datadir}/locale 61 rm -f ${D}${infodir}/bfd.info 62 rm -f ${D}${infodir}/sframe-spec.info 63} 64 65RRECOMMENDS:gdb:append:linux = " glibc-thread-db " 66RRECOMMENDS:gdb:append:linux-gnueabi = " glibc-thread-db " 67RRECOMMENDS:gdbserver:append:linux = " glibc-thread-db " 68RRECOMMENDS:gdbserver:append:linux-gnueabi = " glibc-thread-db " 69