LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-06-2018, 10:11 AM   #1
vysero
Member
 
Registered: May 2018
Posts: 137

Rep: Reputation: Disabled
Cross debugging with embedded Linux us gbd-multiarch over serial


I have an embedded Linux application running on an arm processor with a Digi SOM overlay. I am attempting to debug the application via gdb-multiarch inside of Eclipse IDE for C/C++ Developers Version: Photon Release (4.8.0)

I am logging onto the target via a serial connection and I know gdbserver is on the system:

Code:
# gdbserver
Usage:  gdbserver [OPTIONS] COMM PROG [ARGS ...}
        gdbserver [OPTIONS] --attach COMM PID
        gdbserver [OPTIONS] --multi COMM

COMM may either be a tty device (for serial debugging), or
HOST:PORT to listen for a TCP connection

Options:
  --debug           Enable debugging output.
I have already setup the Eclipse custom debugger connection to be of type Serial and I have given it the Device location/port and the Baud Rate.

The application can be run from the /etc/init.d directory. For instance, I can make a change in the code save it and copy the change to a directory I have setup @ /exports. If I want to run the program I simply navigate to the init.d directory from within the serial-terminal and run the script:

./S95-lonepeak-suite start

Now I just need to figure out what gdbserver command I need to enter into the serial port terminal so the two can communicate with one another and I can cross-debugg the application.

I would have thought it would be something like:

# gdbserver ttyS0 S95-lonepeak-suite

or

# gdbserver /dev/ttyS0 S95-lonepeak-suite

Apparently that is not correct.

EDIT: Never mind I figured this out guys. Sorry if I wasted anyone's time.

Last edited by vysero; 12-06-2018 at 11:28 AM.
 
Old 12-10-2018, 03:41 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Can you post what it was you figured out please? That way others who have same issue in future will see your solution.
 
Old 12-10-2018, 05:04 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Linux - Embedded & Single-board computer> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
Debugging over serial console sankarp Linux - Kernel 1 12-17-2010 06:58 PM
2.6.x kernel debugging over ethernet (without serial connection) and reboot anitemp Linux - Kernel 2 02-25-2009 07:23 PM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM
remote kernel debugging over a serial line swaroop Linux - Software 0 03-24-2005 12:58 AM
linux gbd loading shared libraries? mobetterlinux Programming 1 10-07-2004 05:24 PM

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

All times are GMT -5. The time now is 09:30 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