LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
Search this Thread
Old 09-19-2012, 03:00 PM   #1
elico
Member
 
Registered: Dec 2011
Posts: 115

Rep: Reputation: Disabled
Debugging issue


Hi all

Another newbe question :

Afdter I cross compile my C and LYNUX commands
into a cross platform , how do I debug this code ?

Do I use the regular LED and input switches debugging method like in the regular non OS boards ?

i know theree are emulators like Quem
but my code is hardware specific
and port specific .


So how debugging is done ?

Elico
 
Old 09-20-2012, 01:25 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by elico View Post
Afdter I cross compile my C and LYNUX commands
into a cross platform , how do I debug this code ?
If the target is running Linux, you can put gdbserver on it and debug from your build machine using GDB over serial or Ethernet: gdbserver
 
Old 09-20-2012, 02:32 AM   #3
elico
Member
 
Registered: Dec 2011
Posts: 115

Original Poster
Rep: Reputation: Disabled
Thanks

What is exactly the "build machine" ?
Is it the target board under development ?

gdbserver is wonderful..

Many thanks
Elico
 
Old 09-20-2012, 01:09 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by elico View Post
What is exactly the "build machine" ?
The build machine is the computer on which you cross compile programs.

Quote:
Originally Posted by elico View Post
Is it the target board under development ?
The target is the board on which you run the cross compiled programs.

Quote:
Originally Posted by elico View Post
gdbserver is wonderful..
Actually, it can be quite painful to use. But it is better than nothing.
 
Old 09-20-2012, 03:54 PM   #5
elico
Member
 
Registered: Dec 2011
Posts: 115

Original Poster
Rep: Reputation: Disabled
Thanks
Elico
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Require help in debugging Signal 9 issue prashanth22 Programming 2 01-25-2010 12:01 AM
Require help in debugging Signal 9 issue prashanth22 Linux - Embedded & Single-board computer 0 01-17-2010 11:49 PM
[SOLVED] Effective debugging or improving ones debugging skills Ajit Gunge Programming 3 05-22-2009 10:29 AM
Bash script debugging issue internetSurfer Programming 4 01-28-2008 09:24 PM
Debugging Issue AMMullan Programming 2 01-13-2004 03:04 PM


All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
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