Android remote gdb

On Android phone

adb push ~/utils/android-ndk-r12b/prebuilt/android-arm64/gdbserver/gdbserver /data/local/tmplinux

#/data/local/tmp/gdbserver :8888 /data/local/tmp/test 0 /data/local/tmpandroid

set follow-fork-mode [parent|child]tcp

On PC

adb forward tcp:8888 tcp:8888ui

~/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

相關文章
相關標籤/搜索