summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/debug/gdb.in7
-rw-r--r--scripts/build/debug/300-gdb.sh15
2 files changed, 21 insertions, 1 deletions
diff --git a/config/debug/gdb.in b/config/debug/gdb.in
index 3a00589..e9418b5 100644
--- a/config/debug/gdb.in
+++ b/config/debug/gdb.in
@@ -15,6 +15,12 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
+config GDB_V_linaro_7_2_2011_02_0
+ bool
+ prompt "linaro-7.2-2011.02-0 (EXPERIMENTAL)"
+ depends on EXPERIMENTAL
+ select GDB_7_0_or_later
+
config GDB_V_7_2
bool
prompt "7.2 (EXPERIMENTAL)"
@@ -52,6 +58,7 @@ config GDB_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
+ default "linaro-7.2-2011.02-0" if GDB_V_linaro_7_2_2011_02_0
default "7.2" if GDB_V_7_2
default "7.1" if GDB_V_7_1
default "7.0.1" if GDB_V_7_0_1
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index 6f794f2..decc7da 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -33,12 +33,25 @@ do_debug_gdb_parts() {
}
do_debug_gdb_get() {
+ local linaro_version
+ local linaro_series
+ local linaro_base_url="http://launchpad.net/gdb-linaro"
+
+ # Account for the Linaro versioning
+ linaro_version="$( echo "${CT_GDB_VERSION}" \
+ |sed -r -e 's/^linaro-//;' \
+ )"
+ linaro_series="$( echo "${linaro_version}" \
+ |sed -r -e 's/-.*//;' \
+ )"
+
do_debug_gdb_parts
if [ "${do_gdb}" = "y" ]; then
CT_GetFile "gdb-${CT_GDB_VERSION}" \
{ftp,http}://ftp.gnu.org/pub/gnu/gdb \
- ftp://sources.redhat.com/pub/gdb/{,old-}releases
+ ftp://sources.redhat.com/pub/gdb/{,old-}releases \
+ "${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
fi
if [ "${do_ncurses}" = "y" ]; then