免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2765 | 回复: 0
打印 上一主题 下一主题

关于gdbserver 远程调试的Illegal instruction errno [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-01 06:26 |只看该作者 |倒序浏览
以下是一些调试信息:

target: S3c2410 + linux-2.6.14 + gcc-3.4.2 + uclibc-0.9.28
targetname : arm    192.168.1.10
hostname :   linux  192.168.1.1

on target:
  # mount -t nfs linux:/embed/arm/daqmod/debug /mnt/nfs
  # cd /mnt/nfs
  # ls
    arm-linux-gdb    gdbserver      mytest         tcpdump
  # ./mytest
   Hellow word!!
  # ./gdbserver linux:2345 mytest
on host:
   [ydyyun@linux ydyyun]$ cd /embed/arm/daqmod/debug/
   [ydyyun@linux debug]$ ls
     arm-linux-gdb    gdbserver      mytest         tcpdump
   [ydyyun@linux debug]$ ./arm-linux-gdb mytest
    GNU gdb 6.0
      ..........
    This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"...
   (gdb) target remote arm:2345
   Remote debugging using arm:2345
   0x40000a90 in ?? ()
   (gdb)

on target:
    # ./gdbserver linux:2345 mytest
    Process mytest created; pid = 229
    Remote debugging from host 192.168.1.1

on host:
  (gdb) b main
     Breakpoint 1 at 0x85cc: file t.c, line 3.
  (gdb) c
     Continuing.
     Program received signal SIGILL, Illegal instruction.      //  Error  
     0x4000349c in ?? ()
  (gdb) disas 0x4000349c 0x400034a4
     Dump of assembler code from 0x4000349c to 0x400034a4:
     0x4000349c:     bl      0x40001740
     0x400034a0:     ldr     r3, [pc, #2272] ; 0x40003d88
     End of assembler dump.
  (gdb) disas 0x40001740 0x40001748
     Dump of assembler code from 0x40001740 to 0x40001748:
     0x40001740:     stmdb   sp!, {r4, r5, r6, r7, r8, r10, lr}
     0x40001744:     ldr     r10, [pc, #668] ; 0x400019e8
     End of assembler dump.
  在网上google了N久.有人说是float point运算引起的,最好的办法是关闭CPU的FPU,但没说明怎样关闭, 请大侠们指点一下.....
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP