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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -