adb push ~/utils/android-ndk-r12b/prebuilt/android-arm64/gdbserver/gdbserver /data/local/tmp
linux
#/data/local/tmp/gdbserver :8888 /data/local/tmp/test 0 /data/local/tmp
android
set follow-fork-mode [parent|child]tcp
adb forward tcp:8888 tcp:8888
ui
~/utils/android-ndk-r12b/prebuilt/linux-x86_64/bin/gdb -q -ex "target remote :8888" -ex "source break_points" -ex "set follow-fork-mode parent"
code