Install build tools and dependencies and run compile job
sudo apt-get install libmpfr-dev libgmp3-dev build-essential -y
wget 'https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.xz'
tar -xf gdb-14.2.tar.xz
cd gdb-14.2
./configure --with-python3
make -j$(nproc)