Skip to content

Commit 9d09443

Browse files
committed
WIP
Signed-off-by: Hanno Becker <[email protected]>
1 parent 80903e8 commit 9d09443

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

scripts/autogen

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,17 +2199,19 @@ def update_via_simpasm(
21992199
# Add syntax option for x86_64
22002200
if arch == "x86_64" and x86_64_syntax != "att":
22012201
cmd += ["--syntax", x86_64_syntax]
2202+
cmd += ["-v"]
22022203
r = subprocess.run(
22032204
cmd,
2204-
stdout=subprocess.DEVNULL,
2205-
stderr=subprocess.PIPE,
2205+
stdout=subprocess.PIPE,
2206+
stderr=subprocess.STDOUT,
22062207
check=True,
22072208
text=True,
22082209
)
2210+
print(r.stdout)
22092211
except subprocess.CalledProcessError as e:
22102212
print(f"Command failed: {' '.join(cmd)}")
22112213
print(f"Exit code: {e.returncode}")
2212-
print(f"stderr: {e.stderr}")
2214+
print(f"stdout/stderr: {e.stdout}")
22132215
raise Exception("Failed to run simpasm") from e
22142216
tmp.seek(0)
22152217
new_contents = tmp.read().decode()

scripts/simpasm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ def simplify(logger, args, asm_input, asm_output=None):
256256
logger.debug(f"Disassembling temporary object file {tmp_objfile0} ...")
257257
disasm = run_cmd(cmd).stdout
258258

259+
print(disasm)
260+
259261
logger.debug("Patching up disassembly ...")
260262
simplified = patchup_disasm(disasm, cfify=args.cfify)
261263

0 commit comments

Comments
 (0)