android-x86如何使用gdb及gdb server主机连接target,调试target上的程序?

其它Linux/Unix/BSD/OSX等发行版讨论
回复
genius1wjc
帖子: 2
注册时间: 2011-01-04 21:40
送出感谢: 0
接收感谢: 0

android-x86如何使用gdb及gdb server主机连接target,调试target上的程序?

#1

帖子 genius1wjc » 2011-01-04 21:45

官方指南:(http://www.android-x86.org/documents/debug-howto)
set up host-only network as mentioned earlier
in the terminal emulator, run su
in the terminal emulator, run gdbserver <VirtualBox ip address>:1234 [application binary name with the path] or [--attach pid]
on your host machine, run gdb [path of your application binary]
gdb > target remote <VirtualBox ip address>:1234
gdb > set solib-search-path <the path to all the shared library binaries>
gdb > c

但是我不明白,比如浏览器等应用程序的路径是什么?而且为什么在host上再敲一次?

无限感谢大家!
回复

回到 “其它类Unix OS发行版”