Skip to content

Commit

Permalink
fixed called to qemu.ld_prefix passing env dict as target (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rki authored and zachriggle committed May 25, 2018
1 parent 5ae13e8 commit fe6619b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def debug(args, gdbscript=None, exe=None, ssh=None, env=None, sysroot=None, **kw
else:
qemu_port = random.randint(1024, 65535)
qemu_user = qemu.user_path()
sysroot = sysroot or qemu.ld_prefix(env)
sysroot = sysroot or qemu.ld_prefix(env=env)
if not qemu_user:
log.error("Cannot debug %s binaries without appropriate QEMU binaries" % context.arch)
args = [qemu_user, '-g', str(qemu_port)] + args
Expand Down

0 comments on commit fe6619b

Please sign in to comment.