LinuxQuestions.org
Help answer threads with 0 replies.
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, 11:11 AM   #1
vysero
Member
 
Registered: May 2018
Posts: 123

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 12:28 PM.
 
Old 12-10-2018, 04: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,549
Blog Entries: 15

Rep: Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494
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, 06:04 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,268
Blog Entries: 29

Rep: Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462Reputation: 2462
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


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

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

All times are GMT -5. The time now is 08:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration