3 ms·
isn't this more or less the same as gdb -batch -n -ex 'call chdir("whatever")' -p $$
by Hello71 7y ago
isn't this more or less the same as
gdb -batch -n -ex 'call chdir("whatever")' -p $$
- vidarh 7y agoThat does seem to be conceptually pretty much what it's doing. Except your version works on more architectures. It's a simple example of ptrace() though.