uCdot
search uCdot:
 
Embedded Linux and uClinux Developer Forum
 
uCdot
- FAQ
- Dev Boards
- Submit Story
- Submit FAQ
- Submit Dev Board
- Topics
- Authors
- About

- Preferences
- Older Stuff
- Past Polls
- Discussions
- Journals
- Messages

Embedded Linux
Mailing Lists
uClinux-dev (search)
Coldfire (search)
MTD
Microblaze (search)
ELUG
BDM-devel
Blackfin

Embedded Linux
Sites
uClinux.org
uClinux-Dist
uClibc
uClinux Directory
LinuxDevices
ARMulator
uClinux-elf-tools
Colilo
Kernel Archives
H8-uClinux
TLDP
Microblaze uClinux
BDM Tools
SkyEye (emulator)
LOM
SETR live CD
Blackfin uClinux

Embedded Linux
Companies
SecureComputing
SDCS
CodePoet
Arcturus
Cadenux
ARMtwister
uClinux.net
Xiptech
senTec
embedded^cl
Cwlinux
emlix
TimeSys
eSpark Infotech
SSV Embedded Systems
Embedded Minds
PeerSec Networks
Vortech Consulting
swissEmbedded
Synertronixx
Mbedthis Software
.vantronix
Aday
GraceLabs
Pengutronix
metux ITS
Codito Technologies
Firmix Software
PetaLogix
NuDesign
Merritt Technologies
WindRiver
OpenGear
Rubico
Analog Devices
Artila Electronics
Vyatta
Embest Info&Tech
Katalix Systems
WorkWare Systems
Kdev
Intellimetrix
Virtual Cogs
SYSGO
coresystems
ExactCODE
KOAN
EzHomeTech
Linux4biz
Linkodas
Trego
EMBEST

 
ARM + gdbserver remote debug, Illegal instruction error
Question Denry.Yang writes " Hi,All I have build embedded linux systems on ARM,then use GDB to remote debug,but I get a Illegal instruction error, following is some information. "

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.
      (gdb)
  
It happened error before enter program, But execute the 'mytest' on target was fine,I have used google search the error,Someone said cause by float point,The better solution is specify CPU has no FPU, But didn't say how to specify. Can anyone help me? Thanks

uClinux-2.6.24-uc0 released | SCALE 6x in Los Angeles This Weekend  >

 

 
uCdot Login
Nickname:

Password:

[ Create a new account ]

Related Links
  • uClibc
  • Linux
  • Denry.Yang
  • More on Question
  • Also by davidm
  • This discussion has been archived. No new comments can be posted.
    ARM + gdbserver remote debug, Illegal instruction error | Login/Create an Account | Top | Search Discussion
    Threshold:
    The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

    The Embedded Linux and uClinux Developer Forum is hosted by: SnapGear A gambler's biggest thrill is winning a bet. His next biggest thrill is losing a bet.

    [ home | contribute story | older articles | past polls | faq | authors | preferences ]