File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
GDB_FTP_URL=" https://ftp.gnu.org/gnu/gdb/"
6
6
7
7
if [ -z " ${GDB_VERSION} " ]; then
8
- echo " [!] GDB_VERSION not provided. Fetching from website... "
8
+ echo " [!] GDB_VERSION not provided. Fetching version from ${GDB_FTP_URL} "
9
9
GDB_VERSION=$( curl -s ${GDB_FTP_URL} | grep -o ' gdb-[0-9.]*\.tar\.gz' | sort -V | tail -1 | sed ' s/gdb-\([0-9.]*\)\.tar\.gz/\1/' | tr -d ' \n' )
10
10
11
11
if [ -z " ${GDB_VERSION} " ]; then
@@ -14,6 +14,8 @@ if [ -z "${GDB_VERSION}" ]; then
14
14
fi
15
15
fi
16
16
17
+ echo " [+] GDB version: ${GDB_VERSION} "
18
+
17
19
PROJECT_DIR=$( dirname " $( realpath -s " $0 " ) " )
18
20
GDB_ARCHS=(" x86_64-linux-gnu" )
19
21
GDBSERVER_ARCHS=(" i686-linux-gnu" " x86_64-linux-gnu" " arm-linux-gnueabi" " aarch64-linux-gnu" )
@@ -26,8 +28,6 @@ function buildGDB() {
26
28
local buildPath
27
29
local prefix
28
30
29
- echo " [+] GDB version: ${GDB_VERSION} "
30
-
31
31
if [ " ${isGDBServer} " = true ]; then
32
32
echo " [+] Building GDB server for abi: ${eabi} "
33
33
prefix=gdbserver
You can’t perform that action at this time.
0 commit comments