I tried to change it with Debug configurations > Arguments > Working directory, but that only changes the location of the host gdb.
This can be observed by either:
- creating a test program that prints
pwd pwdxon the processpwdon the Eclipse Debugger Console
When using CLI gdb and gdbserver, we observe that the pwd of the program is always the same as where gdbserver was launched, and the pwd and cd commands on host only change host settings.
The Automatic Launcher SSHs into the target and launches gdbserver for us, which automates the re-run process: Remote debugging C++ applications with Eclipse CDT/RSE/RDT
Eclipse 4.7.0.