1.1 --- a/scripts/build/debug/300-gdb.sh Mon Mar 15 22:02:02 2010 +0100
1.2 +++ b/scripts/build/debug/300-gdb.sh Sun Apr 11 23:05:48 2010 +0200
1.3 @@ -6,13 +6,6 @@
1.4 # config options for this.
1.5 CT_DEBUG_GDB_NCURSES_VERSION="5.7"
1.6
1.7 -do_debug_gdb_suffix() {
1.8 - case "${CT_GDB_VERSION}" in
1.9 - snapshot) ;;
1.10 - *) echo "-${CT_GDB_VERSION}";;
1.11 - esac
1.12 -}
1.13 -
1.14 do_debug_gdb_parts() {
1.15 do_gdb=
1.16 do_insight=
1.17 @@ -40,9 +33,9 @@
1.18 do_debug_gdb_parts
1.19
1.20 if [ "${do_gdb}" = "y" ]; then
1.21 - CT_GetFile "gdb$(do_debug_gdb_suffix)" \
1.22 - {ftp,http}://ftp.gnu.org/pub/gnu/gdb \
1.23 - ftp://sources.redhat.com/pub/gdb/{{,old-}releases,snapshots/current}
1.24 + CT_GetFile "gdb-${CT_GDB_VERSION}" \
1.25 + {ftp,http}://ftp.gnu.org/pub/gnu/gdb \
1.26 + ftp://sources.redhat.com/pub/gdb/{,old-}releases
1.27 fi
1.28
1.29 if [ "${do_insight}" = "y" ]; then
1.30 @@ -63,8 +56,8 @@
1.31 do_debug_gdb_parts
1.32
1.33 if [ "${do_gdb}" = "y" ]; then
1.34 - CT_Extract "gdb$(do_debug_gdb_suffix)"
1.35 - CT_Patch "gdb$(do_debug_gdb_suffix)"
1.36 + CT_Extract "gdb-${CT_GDB_VERSION}"
1.37 + CT_Patch "gdb-${CT_GDB_VERSION}"
1.38 fi
1.39
1.40 if [ "${do_insight}" = "y" ]; then
1.41 @@ -81,7 +74,7 @@
1.42 do_debug_gdb_build() {
1.43 local -a extra_config
1.44
1.45 - gdb_src_dir="${CT_SRC_DIR}/gdb$(do_debug_gdb_suffix)"
1.46 + gdb_src_dir="${CT_SRC_DIR}/gdb-${CT_GDB_VERSION}"
1.47 insight_src_dir="${CT_SRC_DIR}/insight-${CT_GDB_VERSION}"
1.48
1.49 # Version 6.3 and below behave badly with gdbmi