about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-10-24 08:09:06 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-06 17:20:13 +0000
commit99b5b005ab43b57cf97b86ad2d06479f5c3e06c2 (patch)
tree4cf45be71ece7bd3cca2d4422f75b1453596d7d1 /src
parent10aecdf0a8ed8823a44a0fe0fa271e0458241c58 (diff)
downloadfocaccia-99b5b005ab43b57cf97b86ad2d06479f5c3e06c2.tar.gz
focaccia-99b5b005ab43b57cf97b86ad2d06479f5c3e06c2.zip
Print alternative disassembly
Diffstat (limited to 'src')
-rw-r--r--src/focaccia/symbolic.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/focaccia/symbolic.py b/src/focaccia/symbolic.py
index 3ace906..414d15b 100644
--- a/src/focaccia/symbolic.py
+++ b/src/focaccia/symbolic.py
@@ -726,8 +726,12 @@ class SymbolicTracer:
                     instr = instr.instr
                 except:
                     if self.force:
-                        warn(f'Unable to disassemble instruction {hex(pc)}: {err}.'
-                             f' Skipping.')
+                        if alt_disas:
+                            warn(f'Unable to handle instruction {alt_disas} at {hex(pc)} in Miasm.'
+                                 f' Skipping.')
+                        else:
+                            warn(f'Unable to disassemble instruction {hex(pc)}: {err}.'
+                                 f' Skipping.')
                         target.step()
                         continue
                     raise # forward exception