mirror of https://github.com/pwndbg/pwndbg
Fix incorrect import (#1131)
This commit is contained in:
parent
6d573290ac
commit
869366bbf7
|
@ -205,7 +205,7 @@ def compile(filename=None, address=0):
|
|||
objectname = os.path.splitext(filename)[0] + ".o"
|
||||
|
||||
if not os.path.exists(objectname):
|
||||
gcc = pwndbg.lib.gcc.which(pwndbg.gdb.arch)
|
||||
gcc = pwndbg.lib.gcc.which(pwndbg.gdblib.arch)
|
||||
gcc += ["-w", "-c", "-g", filename, "-o", objectname]
|
||||
try:
|
||||
subprocess.check_output(gcc)
|
||||
|
|
Loading…
Reference in New Issue