Fix incorrect import (#1131)

This commit is contained in:
Gulshan Singh 2022-09-06 02:57:50 -07:00 committed by GitHub
parent 6d573290ac
commit 869366bbf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)