您的位置:首页 > 移动开发 > Android开发

使用qemu调试android代码

2013-01-14 19:31 911 查看
使用remote-gdb调试android代码:

在一个终端上:

./emulator -show-kernel -kernel zImage -qemu -cpu cortex-a8  -d in_asm -gdb tcp::1234 -S

另一个终端:

alloc@linux-q1tz:~/skyeye/armv7/armv7_goldfish_testcase> ~/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gdb vmlinux  

GNU gdb (Sourcery CodeBench Lite 2011.09-70) 7.2.50.20100908-cvs

Copyright (C) 2010 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".

For bug reporting instructions, please see:

<https://support.codesourcery.com/GNUToolchain/>...

Reading symbols from /home/alloc/skyeye/armv7/armv7_goldfish_testcase/vmlinux...(no debugging symbols found)...done.

(gdb) target remote :1234
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: