by Hello71 · 7y ago · 0 comments
gdb -batch -n -ex 'call chdir("whatever")' -p $$
It's a simple example of ptrace() though.