使用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
在一个终端上:
./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
相关文章推荐
- 如何使用gdb调试android webkit内核代码
- android-代码里使用shell命令(wifi调试)
- Android无源码调试Native代码(使用GDB)
- 使用QEMU调试Linux内核代码
- 大杀招之使用QEMU调试Linux内核代码
- 如何使用gdb调试android webkit内核代码
- 使用Android Studio 查看并调试Android Framework代码
- 使用eclipse CDT调试android native代码
- 使用GDB 单步调试Android本地代码
- Android逆向中的常用调试方法和使用代码总结
- android使用ndk-stack调试JNI部分的C/C++代码
- Android无源码调试Native代码(使用GDB)
- 使用Android Studio调试Android Framework代码
- Android无源码调试Native代码(使用GDB)
- Android native debug: 手动使用gdbserver远程调试C代码
- android 调试NDK的C++代码 使用VisualGDB+VS2005
- 使用trace32调试跟踪android lk代码的一点小技巧
- 使用Visual Studio 2015调试Android平台Cocos2d-x游戏的C++代码
- Android调试系列—使用android studio调试smali代码
- Android平台使用GDBServer 调试Native C代码