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.