Run->Debug Configurations->Linux Application Debug->Connect to already running gdbserver
(1) how to run gdbserver in this case
I use a separate USB to connect to phone usb port, together with a JTAG connection to DSTREAM box
I did an adb shell, and do
gdbserver :5039 --attach pid, by default the ip is localhost which is 127.0.0.1
(2) how to set gdbserver address (TCP)
I put in 127.0.0.1
(3) port is set to 5039
but after I use apply and debug
DSTREAM gives out Unable to connect to DSTREAM
Reason:
Failed to connect to the device
Unable to connect to device gdbserver
Unable to connect to gdbserver at 127.0.0.1 on port 5039
If you have access to the kernel symbols, you can use the kernel awareness functionality to see the process of interest and debug via that. However application level debug isn't really the use case for this feature.