LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Debugging issue (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/debugging-issue-4175428039/)

elico 09-19-2012 02:00 PM

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

David1357 09-20-2012 12:25 AM

Quote:

Originally Posted by elico (Post 4784394)
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

elico 09-20-2012 01:32 AM

Thanks

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

gdbserver is wonderful..

Many thanks
Elico

David1357 09-20-2012 12:09 PM

Quote:

Originally Posted by elico (Post 4784788)
What is exactly the "build machine" ?

The build machine is the computer on which you cross compile programs.

Quote:

Originally Posted by elico (Post 4784788)
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 (Post 4784788)
gdbserver is wonderful..

Actually, it can be quite painful to use. But it is better than nothing.

elico 09-20-2012 02:54 PM

Thanks
Elico


All times are GMT -5. The time now is 07:06 PM.