From 500ee00f22ef0e48da06d9fb7da552ddae090fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20TH=C3=89BAUDEAU=22?= Date: Tue, 31 May 2011 21:03:03 +0200 Subject: gdb: use the PKGVERSION and BUGURL options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch makes gdb benefit from the TOOLCHAIN_PKGVERSION and TOOLCHAIN_BUGURL options. Signed-off-by: "Benoît THÉBAUDEAU" diff --git a/config/debug/gdb.in b/config/debug/gdb.in index a8f76ed..478f76b 100644 --- a/config/debug/gdb.in +++ b/config/debug/gdb.in @@ -72,6 +72,10 @@ endchoice config GDB_7_0_or_later bool + select GDB_HAS_PKGVERSION_BUGURL + +config GDB_HAS_PKGVERSION_BUGURL + bool config GDB_VERSION string diff --git a/config/toolchain.in b/config/toolchain.in index 3fb4bd1..d5ee6b7 100644 --- a/config/toolchain.in +++ b/config/toolchain.in @@ -73,7 +73,8 @@ config TOOLCHAIN_PKGVERSION help Specify a string that identifies your package. You may wish to include a build number or build date. This version string will be included in - the output of gcc --version, and also in binutils, eglibc. + the output of gcc --version, and also in binutils, eglibc, gdb and + gdbserver. This is passed to the configure flag --with-pkgversion. diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index a426f4a..be99e17 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -98,6 +98,11 @@ do_debug_gdb_build() { 6.2*|6.3) extra_config+=("--disable-gdbmi");; esac + if [ "${CT_GDB_HAS_PKGVERSION_BUGURL}" = "y" ]; then + [ -n "${CT_TOOLCHAIN_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_TOOLCHAIN_PKGVERSION}") + [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}") + fi + if [ "${CT_GDB_CROSS}" = "y" ]; then local -a cross_extra_config -- cgit v0.10.2-6-g49f6