Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Remote Debugging through gateway(Using Eclipse / gdb from host through gateway to target system)
Remote Debugging through gateway [message #1837465] Sat, 30 January 2021 21:27
J.R. Heisey is currently offline J.R. HeiseyFriend
Messages: 10
Registered: July 2013
Junior Member
I am trying to debug a target through a gateway or proxy system.

Running Eclilpse / gdb on host
Running gdbserver on target
- Note that I am able to get Eclipse to auto run gdbserver on the target using remote connections

I.E. Eclipse on host => gateway => gdbserver on target

All three system are running LInux

1) I was not able to get port forwarding to work using these ssh command parameters. Anyone point to a ssh port forwarding description which is understandable?

gateway $ ssh -N -p 2159 target 2159:localhost:2159

or

host $ ssh -L 2159:target:2159 gateway

Running gdb on the command line does not connect to the gdbserver

2) As an alternative to port forwarding you can chain ssh sessions to gdb on the command line on the target machine.

ssh -A -t gateway cd ${project_folder} \&\& gdb --command ${gdb_command_file}

This command line at shell prompt successfully runs gdb on the gateway and connects to the gdbserver on the target

When I try to use this in a Debug Configuration ... specifically
Debugger tab
=> Main sub tab
=> GDB debugger field contains: ssh -A -t gateway cd ${project_folder} \&\& gdb

Removing the backslashes for the escaped ampersands doe not help.

Can an Eclipse developer explain how Eclipse debugger uses this field?
Could this be a bug?

Thanks
Previous Topic:Can't get into the Preprocessor Include Part of The Project Dialogue Box
Next Topic:Remote debugging error
Goto Forum:
  


Current Time: Sat Oct 12 17:06:05 GMT 2024

Powered by FUDForum. Page generated in 0.04180 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top