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