gdb调试android

来源:互联网 发布:免费门户网站源码 编辑:程序博客网 时间:2024/06/05 08:39

attach_gdbserver.sh:

. ensure_root_rw.sh

adb wait-for-device

adb push prebuilts/misc/android-arm/gdbserver/gdbserver /system/bin/
adb forward tcp:8000 tcp:8000

adb shell gdbserver --attach :8000 $1



start_gdb.sh:

arm-linux-androideabi-gdb $OUT/symbols/system/bin/app_process



.gdbinit:

set solib-absolute-prefix out/target/product/AD682H/symbols
set solib-search-path out/target/product/AD682H/symbols/system/lib
target remote :8000