目标
debug android runtime native code
环境
已经编译好aosp 源码 版本10
步骤
-
新建native project
image.png
-
debug
-
pause project in native debug window
image.png
-
add-dsym your_path_to_libart.so
其中路径大概是
aosp/out/target/product/generic_x86_64/symbols/apex/com.android.runtime/lib64/libart.so -
settings set target.source-map art your_art_path_in_project
your_art_path_in_project 是预先把art源码拷贝到as中的位置
然后用鼠标下个断点,触发它

nice!
网友评论