Skip to content

Commit

Permalink
Fix env command not found in gdb.debug (#2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scoder12 committed Apr 20, 2022
1 parent fca2929 commit 8dd566b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/gdb.py
Expand Up @@ -303,7 +303,7 @@ def _gdbserver_args(pid=None, path=None, args=None, which=None, env=None):
env_args.append(b'%s=%s' % (key, env.pop(key)))
else:
env_args.append(b'%s=%s' % (key, env[key]))
gdbserver_args += ['--wrapper', 'env', '-i'] + env_args + ['--']
gdbserver_args += ['--wrapper', which('env'), '-i'] + env_args + ['--']

gdbserver_args += ['localhost:0']
gdbserver_args += args
Expand Down

0 comments on commit 8dd566b

Please sign in to comment.