about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2019-01-12 14:41:59 +0100
committerGitHub <noreply@github.com>2019-01-12 14:41:59 +0100
commit8e074f0c053c5c95ddb532cbf5c63dc0f2e4defa (patch)
treeedeb2dbff9b9c227dc7a7a171685d3d987dd6518
parentc56744851d30c094b1354e9f3a725ea5d85fd05d (diff)
parentbd9d5e9cb16c26cad34fd6d563f47fc555660ce3 (diff)
downloadmiasm-8e074f0c053c5c95ddb532cbf5c63dc0f2e4defa.tar.gz
miasm-8e074f0c053c5c95ddb532cbf5c63dc0f2e4defa.zip
Merge pull request #929 from nofiv/master
Not shown instruction prefix
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/arch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 77744ccd..11c1e00f 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -540,7 +540,10 @@ class instruction_x86(instruction):
         self.additional_info.prefixed = getattr(c, "prefixed", "")
 
     def __str__(self):
-        o = super(instruction_x86, self).__str__()
+        return self.to_string()
+      
+    def to_string(self, loc_db=None):
+        o = super(instruction_x86, self).to_string(loc_db)
         if self.additional_info.g1.value & 1:
             o = "LOCK %s" % o
         if self.additional_info.g1.value & 2: