使用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
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

本文介绍如何通过Remote-GDB工具进行Android代码调试。在两个不同的终端分别运行模拟器及调试器,设置监听端口为1234,并连接到指定的内核映像。使用Sourcery CodeBench Lite 2011.09版本的GDB工具读取vmlinux文件。
1515

被折叠的 条评论
为什么被折叠?



