Debugging fails to load register view using aarch64-none-linux-gnu-gdb in linux platforms

On Linux platforms, debugging fails to load register view using aarch64-none-linux-gnu-gdb, throwing g packet error. Aarch64-none-linux-gnu-gdb was built using version 13.2 of the arm-gdb github repository. There were no errors displayed while using aarch64-none-linux-gnu-gdb prebuild. Didn't see any issue on register view when built with mingw.

This is the executed script in centos7 virtual machine for to build the aarch64-none-linux-gnu-gdb

#sudo yum install texinfo
#sudo yum install bison
#sudo yum install flex
#sudo yum install gmp-devel

CFLAGS="-Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-strong -fPIE -fpie"
CXXFLAGS="-Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-strong -fPIE -fpie"
LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack"

gcc --version
rm -rf "$Build_Dir/src/ARM-GDB"
rm -rf "$Build_Dir/install/aarch64-none-linux-gnu_bin"

mkdir -p "$Build_Dir/src"
git clone $ARM_GDB_Repo "$Build_Dir/src/ARM-GDB" -b $Tag

cd "$Build_Dir/src/ARM-GDB"
./configure --disable-tui --target=aarch64-none-linux-gnu --with-python=no --enable-targets=arm-none-linux-gnu --exec-prefix="$Build_Dir/install/aarch64-none-linux-gnu"
echo "Performing make operation"
echo "Performing Make install"
sudo make install

Parents Reply Children
No data