Show less error when trying to load a non-exist type

pull/1172/head
lebr0nli 3 years ago committed by Disconnect3d
parent 3b2f7796d6
commit 4ad2d76327

@ -171,7 +171,7 @@ def load(name):
for path in glob.glob(os.path.join(dirname, "*.h")):
if any(b in path for b in blacklist):
continue
print(path)
# print(path)
source += '#include "%s"\n' % path
source += """
@ -208,7 +208,7 @@ def compile(filename=None, address=0):
gcc = pwndbg.lib.gcc.which(pwndbg.gdblib.arch)
gcc += ["-w", "-c", "-g", filename, "-o", objectname]
try:
subprocess.check_output(gcc)
subprocess.check_output(gcc, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
return

Loading…
Cancel
Save