# ./prebuilts/misc/android-arm/gdbserver/gdbserver :1234 ./native_test
<1>.将PC的1234端口转发到Android设备的1234端口# adb forward tcp:1234 tcp:1234 <2>.配置~/.gdbinit# emacs ~/.gdbinittarget remote localhost:1234c <3>.运行gdb# ./prebuilts/gdb/linux-x86/bin/gdb
京公网安备 11010502049817号