diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2019-01-12 14:41:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-12 14:41:59 +0100 |
| commit | 8e074f0c053c5c95ddb532cbf5c63dc0f2e4defa (patch) | |
| tree | edeb2dbff9b9c227dc7a7a171685d3d987dd6518 | |
| parent | c56744851d30c094b1354e9f3a725ea5d85fd05d (diff) | |
| parent | bd9d5e9cb16c26cad34fd6d563f47fc555660ce3 (diff) | |
| download | miasm-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.py | 5 |
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: |