adb中使用gdb调试

  1. push gdbserver 到 device
adb push ~/android-ndk-r21b/prebuilt/android-arm64/gdbserver/gdbserver /data/local/tmp
  1. device 测启动 gdbserver
gdbserver :5039 ./test
  1. 本地启动gdb调试
adb forward tcp:5039 tcp:5039
~/android-ndk-r21b/prebuilt/darwin-x86_64/bin/gdb

(gdb) target remote :5039
(gdb) continue



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • MNN模型支持:Qwen3-VL
  • 一图读懂Qwen
  • 端侧LLM硬件系列(二):内存容量
  • Qwen3-Next:下一代MoE模型架构解析
  • MNN模型支持:面壁小钢炮MiniCPM-V-4