如何运用Gdb对ARM板上的程序进行远程调试
http://tech.ddvip.com 2007年09月07日 社区交流
内容摘要:如何运用Gdb对ARM板上的程序进行远程调试
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"...
(gdb) target remote 192.168.0.50:1234
Remote debugging using 192.168.0.50:1234
0x40001550 in ?? ()
这时ARM板上的信息应该是这样的:
[root@51Board usb]# ./gdbserver 192.168.0.29:1234 arm0702_8.out
Process arm0702_8.out created; pid = 228
Remote debugging from host 192.168.0.29
现在就已经建立其了PC机通ARM板山的连接了。
那么我们就可以像调试本地程序一样调试ARM板上程序。
例如:
(gdb) list
19 //#include "cmaininterfacewidget.h"
20 //#include "headers.h"
21
22 #include "cwidgetmanager.h"
23 #define _DEBUG_
24 #define _DEBUGCDatabase_
25
26 int main( int argc, char ** argv )
27 {
28 QApplication app( argc, argv );
(gdb) break 28
Breakpoint 1 at 0xf25c: file main.cpp, line 28.
(gdb) target remote 192.168.0.50:1234
Remote debugging using 192.168.0.50:1234
0x4011dc30 in ?? ()
Error while mapping shared library sections:
/usr/qpe/lib/libts-0.0.so.0: 没有那个文件或目录.
Error while mapping shared library sections:
/usr/qpe/lib/libqwt.so.4: 没有那个文件或目录.
责编:豆豆技术应用
- Linux/Unix 新闻
- Linux/Unix 入门
- Linux/Unix 命令
- Linux/Unix 安装
- Linux 嵌入式系统
- Linux/Unix 编程
- Linux/Unix 管理
- Linux/Unix 桌面
- Linux/Unix 内核
- Linux/Unix 软件
- SCO Unix
- NetBSD
- OpenBSD
- Redhat/Fedora Linux
- 手机
- Linux/Unix find 搜索命令
- Linux/Unix vi 命令
- Linux/Unix kde 桌面环境
- Linux/Unix GNOME 桌面环境
- Linux/Unix Make 命令
- Linux/Unix crontab 命令
- Linux/Unix ext3 文件系统
- Linux/Unix 文件系统详解
- Linux/Unix ADSL 拨号设置
- Linux/Unix GRUB 配置及应用
- Linux/Unix nfs配置
- Linux/Unix 硬件信息查看及管理
- Linux/Unix 优化
- Linux/Unix 交换分区Swap管理及应用
- Linux/Unix 用户管理
- Linux/Unix Ramdisk
- Linux/Unix 密码恢复管理
- Linux/Unix 文件删除恢复
- Linux/Unix fdisk分区
- Linux/Unix lvs负载均衡管理
- Linux/Unix root用户
- Linux/Unix 集群
- Linux/Unix 日志
- 更多Linux/Unix专题……