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 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)}" 34# Use --without-system-readline to compile with readline 5. 35PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" 36PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs" 37PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" 38# ncurses is already a hard DEPENDS, but would be added here if it weren't 39PACKAGECONFIG[tui] = "--enable-tui,--disable-tui" 40PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz" 41PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" 42 43GDBPROPREFIX = "--program-prefix=''" 44 45DISABLE_STATIC = "" 46 47do_configure () { 48 # override this function to avoid the autoconf/automake/aclocal/autoheader 49 # calls for now 50 (cd ${S} && gnu-configize) || die "failure in running gnu-configize" 51 oe_runconf 52} 53 54# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the 55# right bits installed by binutils. Same for bfd.info -- also from binutils. 56do_install:append() { 57 rm -rf ${D}${libdir} 58 rm -rf ${D}${includedir} 59 rm -rf ${D}${datadir}/locale 60 rm -f ${D}${infodir}/bfd.info 61} 62 63RRECOMMENDS:gdb:append:linux = " glibc-thread-db " 64RRECOMMENDS:gdb:append:linux-gnueabi = " glibc-thread-db " 65RRECOMMENDS:gdbserver:append:linux = " glibc-thread-db " 66RRECOMMENDS:gdbserver:append:linux-gnueabi = " glibc-thread-db " 67