How to set the current working directory of the program when remote debugging with gdbserver Automatic Launcher in Eclipse CDT? -


i tried change debug configurations > arguments > working directory, changes location of host gdb.

this can observed either:

  • creating test program prints pwd
  • pwdx on process
  • pwd on eclipse debugger console

when using cli gdb , gdbserver, observe pwd of program same gdbserver launched, , pwd , cd commands on host change host settings.

the automatic launcher sshs target , launches gdbserver us, automates re-run process: remote debugging c++ applications eclipse cdt/rse/rdt

eclipse 4.7.0.

the best method find go:

  • debug configurations
  • main
  • commands execute before application
  • cd /directory/that/i/want

if want set same directory executable without duplication, unsolved question related: how set working directory when running executable in eclipse cdt same executable?

alternatively, use manual launcher, in launch gdbserver manually on target. cd directory want before running it.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -