LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 06-09-2010, 03:43 AM   #1
chrisARM
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Remote Debugging for ARM - signal SIGILL


Hi,
I am trying to remote debug an application using ddd on a ARM device running "Linux beagleboard 2.6.32 #1 PREEMPT Thu Apr 15 12:05:47 CEST 2010 armv7l GNU/Linux"

I configured ddd to connect to the gdbserver on the beagleboard:
Code:
(gdb) target remote 192.168.0.1:2345

0x400007f0 in _dl_start_user () from /sourcery_root/lib/ld-linux.so.3
(gdb) target remote 192.168.0.1:2345
192.168.0.1:2345: Connection timed out.
(gdb) target remote 192.168.0.1:2345
0x400007f0 in _dl_start_user () from /sourcery_root/lib/ld-linux.so.3
(gdb) c

Program received signal SIGILL, Illegal instruction.
0x40045524 in ?? ()
(gdb) bt
#0  0x40045524 in ?? ()
#1  0x40025050 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
Could someone give a hint where to look at?
Regards,
Chris
 
Old 07-19-2010, 04:21 AM   #2
zaks_974
LQ Newbie
 
Registered: Jul 2010
Location: Bangalore
Distribution: fedora
Posts: 24

Rep: Reputation: 1
(gdb) target remote 192.168.0.1:2345
0x400007f0 in _dl_start_user () from /sourcery_root/lib/ld-linux.so.3

After this,
(gdb) b main

Then go step by step
gdb ) s
 
Old 08-30-2010, 02:45 AM   #3
LinLui
LQ Newbie
 
Registered: Aug 2010
Location: Wuhan, Hubei, P.R.China
Distribution: Fedora Core, Ubuntu
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
in gdb, you should set the syspath before command continue.
It looks like that you are using the Sourcery G++ Lite cross tool-chain?

In its manual of gdb, a section "Setting the Sysroot in the Debugger" should be read.

Code:
(gdb) set sysroot-on-target target-pathname
(gdb) set sysroot host-pathnam
Then, ?? () may be disappeared.

Hope it be helpful.

Quote:
Originally Posted by chrisARM View Post
Hi,
I am trying to remote debug an application using ddd on a ARM device running "Linux beagleboard 2.6.32 #1 PREEMPT Thu Apr 15 12:05:47 CEST 2010 armv7l GNU/Linux"

I configured ddd to connect to the gdbserver on the beagleboard:
Code:
(gdb) target remote 192.168.0.1:2345

0x400007f0 in _dl_start_user () from /sourcery_root/lib/ld-linux.so.3
(gdb) target remote 192.168.0.1:2345
192.168.0.1:2345: Connection timed out.
(gdb) target remote 192.168.0.1:2345
0x400007f0 in _dl_start_user () from /sourcery_root/lib/ld-linux.so.3
(gdb) c

Program received signal SIGILL, Illegal instruction.
0x40045524 in ?? ()
(gdb) bt
#0  0x40045524 in ?? ()
#1  0x40025050 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
Could someone give a hint where to look at?
Regards,
Chris
 
Old 09-03-2013, 09:56 AM   #4
AdamMichnik
LQ Newbie
 
Registered: Sep 2013
Location: Warszawa, Czerska st.
Distribution: Debian
Posts: 1

Rep: Reputation: Disabled
chagne arm instruction set to simpler one - armv4

compile the c++ source files with -march=armv4

In build/core/combo/arm/yourarch.mk put -march=armv4 and then do mm -B showcommands to check if it was used.

Then gdbserver can handle it.
 
  


Reply

Tags
ddd, gdb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Require help in debugging Signal 9 issue prashanth22 Programming 2 01-24-2010 11:01 PM
Require help in debugging Signal 9 issue prashanth22 Linux - Embedded & Single-board computer 0 01-17-2010 10:49 PM
Remote Debugging Shell scripts unev_21 Linux - Software 4 03-12-2009 03:03 PM
debugging remote process in gdb arunachalam Linux - Software 2 02-18-2008 10:27 PM
FC4 Remote Kernel Debugging gratner Fedora 2 11-02-2005 05:40 PM


All times are GMT -5. The time now is 11:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration