This Magisk module contains gdb 18 and the GNU BinUtils 2.47.0 for arm64 CPUs

ASUS_I006D:/ $ gdb --version
GNU gdb (GDB) 18.1
Copyright (C) 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
ASUS_I006D:/ $ 



ASUS_I006D:/ $  echo "show configuration"  | gdb
GNU gdb (GDB) 18.1
Copyright (C) 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-linux-android".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
Find the GDB manual online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word".
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

(gdb) This GDB was configured as follows:
   configure --host=aarch64-linux-android --target=aarch64-linux-android
	     --with-auto-load-dir=$debugdir:$datadir/auto-load
	     --with-auto-load-safe-path=$debugdir:$datadir/auto-load
	     --with-expat
	     --with-gdb-datadir=/system/usr/share/gdb (relocatable)
	     --with-jit-reader-dir=/system/usr/lib/gdb (relocatable)
	     --without-libunwind-ia64
	     --with-lzma
	     --without-intel-pt
	     --with-xxhash
	     --without-python
	     --without-python-libdir
	     --without-debuginfod
	     --with-curses
	     --without-guile
	     --without-amd-dbgapi
	     --disable-source-highlight
	     --enable-threading
	     --enable-tui
	     --with-system-readline
	     --with-separate-debug-dir=/system/usr/lib/debug (relocatable)

("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)

GNU Readline library version: 8.2	(system)
(gdb) ASUS_I006D:/ $ 



The binaries from the GNU BinUtils in this Magisk Module are:

addr2line  ar  as  c++filt  elfedit  gcore  gprof  gstack  ld  ld.bfd  nm  objcopy  objdump  ranlib  readelf  run  size  strings  strip

e.g.

ASUS_I006D:/ $ as --version
GNU assembler (GNU Binutils) 2.47.20260726
Copyright (C) 2026 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `aarch64-linux-android'.
ASUS_I006D:/ $ 


Details
-------

Color support is disabled in this gdb binary by default. To enable Color support, set the environment variable COLOR to a non-empty value before starting gdb, example:

COLOR=1 ./gdb -tui ...


All binaries are dynamically linked for the Android standard libraries only; examples:

ASUS_I006D:/ $ ldd /system/usr/bin/gdb
	linux-vdso.so.1 => [vdso] (0x72af8bb000)
	libm.so => /apex/com.android.runtime/lib64/bionic/libm.so (0x72ae644000)
	libdl.so => /apex/com.android.runtime/lib64/bionic/libdl.so (0x72ae6ae000)
	libc.so => /apex/com.android.runtime/lib64/bionic/libc.so (0x72a9280000)
ASUS_I006D:/ $ 

ASUS_I006D:/ $ ldd /system/usr/bin/as
	linux-vdso.so.1 => [vdso] (0x7719d44000)
	libdl.so => /apex/com.android.runtime/lib64/bionic/libdl.so (0x7718065000)
	libc.so => /apex/com.android.runtime/lib64/bionic/libc.so (0x771809a000)
ASUS_I006D:/ $ 


The executables are installed in /system/usr/bin. There is a symbolic link in /system/bin for each binary.


The Module also contains statically linked binaries for gdb, gdbserver and run:

ASUS_I006D:/ $ ls -l /system/usr/static_gdb/
total 18516
-rwxr-xr-x 1 root root 13159352 2026-10-03 19:13 gdb_18.1_static
-rwxr-xr-x 1 root root  2129328 2026-10-03 19:13 gdbserver_18.1_static
-rwxr-xr-x 1 root root  3646256 2026-10-03 19:13 run_18.1_static
ASUS_I006D:/ $ 

ASUS_I006D:/ $ file /system/usr/static_gdb/*
/system/usr/static_gdb/gdb_18.1_static:       ELF executable, 64-bit LSB arm64, static, for Android 28, built by NDK r27c (12479018), stripped
/system/usr/static_gdb/gdbserver_18.1_static: ELF executable, 64-bit LSB arm64, static, for Android 28, built by NDK r27c (12479018), stripped
/system/usr/static_gdb/run_18.1_static:       ELF executable, 64-bit LSB arm64, static, for Android 28, built by NDK r27c (12479018), stripped
ASUS_I006D:/ $ 

The statically linked binaries can be used if the phone is booted into a recovery.


The source code for the gdb binaries in this Magisk Module is available here:

https://sourceware.org/pub/gdb/


The source code for the binutils in this Magisk Module is available here:

https://ftp.gnu.org/gnu/binutils/




History

03.10.2026 18.1-v1.0.0 /bs
  initial release


