のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

android valgrind その2

>adb shell
shell@hammerhead:/ $ su
shell@hammerhead:/ # chmod 777 /data/local
shell@hammerhead:/ # chmod 777 /data/local/Inst
shell@hammerhead:/ # mkdir /data/local/Inst
shell@hammerhead:/ # chmod 777 /data/local/Inst
shell@hammerhead:/ # mkdir /data/local/Inst/bin
shell@hammerhead:/ # chmod 777 /data/local/Inst/bin
shell@hammerhead:/ # exit
shell@hammerhead:/ $ exit
>adb root
>adb push ./out/target/product/hammerhead/system/bin/valgrind /data/local/Inst/bin/valgrind
333 KB/s (13656 bytes in 0.040s)
>adb shell
/system/bin/sh: ./valgrind: can't execute: Permission denied
root@hammerhead:/data/local/Inst/bin # chmod 777 /data/local/Inst/bin/valgrind
root@hammerhead:/ # cd /data/local/Inst/bin/
root@hammerhead:/data/local/Inst/bin # ./valgrind
valgrind: failed to start tool 'memcheck' for platform 'arm-linux': No such file or directory