Skip to content

Commit 6f81639

Browse files
committed
FIX: minor logging changes
1 parent ba97859 commit 6f81639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
GDB_FTP_URL="https://ftp.gnu.org/gnu/gdb/"
66

77
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}"
99
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')
1010

1111
if [ -z "${GDB_VERSION}" ]; then
@@ -14,6 +14,8 @@ if [ -z "${GDB_VERSION}" ]; then
1414
fi
1515
fi
1616

17+
echo "[+] GDB version: ${GDB_VERSION}"
18+
1719
PROJECT_DIR=$(dirname "$(realpath -s "$0")")
1820
GDB_ARCHS=("x86_64-linux-gnu")
1921
GDBSERVER_ARCHS=("i686-linux-gnu" "x86_64-linux-gnu" "arm-linux-gnueabi" "aarch64-linux-gnu")
@@ -26,8 +28,6 @@ function buildGDB() {
2628
local buildPath
2729
local prefix
2830

29-
echo "[+] GDB version: ${GDB_VERSION}"
30-
3131
if [ "${isGDBServer}" = true ]; then
3232
echo "[+] Building GDB server for abi: ${eabi}"
3333
prefix=gdbserver

0 commit comments

Comments
 (0)