LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02:00 PM   #1
elico
Member
 
Registered: Dec 2011
Posts: 145

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, 12: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, 01:32 AM   #3
elico
Member
 
Registered: Dec 2011
Posts: 145

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, 12: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, 02:54 PM   #5
elico
Member
 
Registered: Dec 2011
Posts: 145

Original Poster
Rep: Reputation: Disabled
Thanks
Elico
 
  


Reply



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-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
[SOLVED] Effective debugging or improving ones debugging skills Ajit Gunge Programming 3 05-22-2009 09:29 AM
Bash script debugging issue internetSurfer Programming 4 01-28-2008 08:24 PM
Debugging Issue AMMullan Programming 2 01-13-2004 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:28 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
Open Source Consulting | Domain Registration