gdb: use the PKGVERSION and BUGURL options
author"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Tue May 31 21:03:03 2011 +0200 (2011-05-31)
changeset 2490cce067f0448e
parent 2489 b7c9f410704f
child 2491 667054325aab
gdb: use the PKGVERSION and BUGURL options

This patch makes gdb benefit from the TOOLCHAIN_PKGVERSION and
TOOLCHAIN_BUGURL options.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
config/debug/gdb.in
config/toolchain.in
scripts/build/debug/300-gdb.sh
     1.1 --- a/config/debug/gdb.in	Tue May 31 20:55:30 2011 +0200
     1.2 +++ b/config/debug/gdb.in	Tue May 31 21:03:03 2011 +0200
     1.3 @@ -72,6 +72,10 @@
     1.4  
     1.5  config GDB_7_0_or_later
     1.6      bool
     1.7 +    select GDB_HAS_PKGVERSION_BUGURL
     1.8 +
     1.9 +config GDB_HAS_PKGVERSION_BUGURL
    1.10 +    bool
    1.11  
    1.12  config GDB_VERSION
    1.13      string
     2.1 --- a/config/toolchain.in	Tue May 31 20:55:30 2011 +0200
     2.2 +++ b/config/toolchain.in	Tue May 31 21:03:03 2011 +0200
     2.3 @@ -73,7 +73,8 @@
     2.4      help
     2.5        Specify a string that identifies your package. You may wish to include
     2.6        a build number or build date. This version string will be included in
     2.7 -      the output of gcc --version, and also in binutils, eglibc.
     2.8 +      the output of gcc --version, and also in binutils, eglibc, gdb and
     2.9 +      gdbserver.
    2.10  
    2.11        This is passed to the configure flag --with-pkgversion.
    2.12  
     3.1 --- a/scripts/build/debug/300-gdb.sh	Tue May 31 20:55:30 2011 +0200
     3.2 +++ b/scripts/build/debug/300-gdb.sh	Tue May 31 21:03:03 2011 +0200
     3.3 @@ -98,6 +98,11 @@
     3.4          6.2*|6.3)   extra_config+=("--disable-gdbmi");;
     3.5      esac
     3.6  
     3.7 +    if [ "${CT_GDB_HAS_PKGVERSION_BUGURL}" = "y" ]; then
     3.8 +        [ -n "${CT_TOOLCHAIN_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_TOOLCHAIN_PKGVERSION}")
     3.9 +        [ -n "${CT_TOOLCHAIN_BUGURL}" ]     && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
    3.10 +    fi
    3.11 +
    3.12      if [ "${CT_GDB_CROSS}" = "y" ]; then
    3.13          local -a cross_extra_config
    3.14