我正在尝试远程调试运行在arm9上的应用程序。
到目前为止,我已经能够交叉编译并在我的设备上执行gdbserver。
- 获取gdb(7.2)源代码并解压缩
- ./configure --target=arm-none-linux-gnueabi --with-expat=/usr/local/lib/
- make
- cd gdb/gdbserver
- ./configure --host=arm-none-linux-gnueabi
- make
- tftp gdbserver 到我的设备
- 运行并通过gdb连接到设备
gdbserver“似乎”正确启动并附加到我的helloworld应用程序。
当我尝试gdb到远程服务器时,我得到以下提示:
"warning: Can not parse XML target description; XML support was disabled at compile time"
显然,编译没有考虑到expat。我真的不确定如何将expat库路径指定给配置脚本。