diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2025-01-23 21:56:03 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2025-01-24 08:36:24 +0100 |
| commit | e46b1fc2551d112f2f7c2849a780d102d84b8f7b (patch) | |
| tree | d32a0a96849f16012013bbb245ded833558b1741 /miasm/arch/x86/arch.py | |
| parent | cbc722eed8dc807955bd46f84886ae74d161dd0c (diff) | |
| download | focaccia-miasm-e46b1fc2551d112f2f7c2849a780d102d84b8f7b.tar.gz focaccia-miasm-e46b1fc2551d112f2f7c2849a780d102d84b8f7b.zip | |
Fix xdot output
Signed-off-by: Fabrice Desclaux <fabrice.desclaux@cea.fr>
Diffstat (limited to 'miasm/arch/x86/arch.py')
| -rw-r--r-- | miasm/arch/x86/arch.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/miasm/arch/x86/arch.py b/miasm/arch/x86/arch.py index c5ff9b63..2fdac30c 100644 --- a/miasm/arch/x86/arch.py +++ b/miasm/arch/x86/arch.py @@ -15,6 +15,7 @@ import miasm.arch.x86.regs as regs_module from miasm.arch.x86.regs import * from miasm.core.asm_ast import AstNode, AstInt, AstId, AstMem, AstOp from miasm.ir.ir import color_expr_html +from miasm.core.utils import BRACKET_O, BRACKET_C log = logging.getLogger("x86_arch") @@ -624,7 +625,7 @@ class instruction_x86(instruction): s = str(expr).replace('(', '').replace(')', '') else: s = str(expr) - o = prefix + sz + ' PTR %s[%s]' % (segm, s) + o = prefix + sz + ' PTR ' + str(segm) + '[%s]' % s elif isinstance(expr, ExprOp) and expr.op == 'segm': o = "%s:%s" % (expr.args[0], expr.args[1]) else: @@ -655,7 +656,7 @@ class instruction_x86(instruction): s = color_expr_html(expr, loc_db)#.replace('(', '').replace(')', '') else: s = color_expr_html(expr, loc_db) - o = prefix + sz + ' PTR %s[%s]' % (segm, s) + o = prefix + sz + ' PTR ' + str(segm) + BRACKET_O + str(s) + BRACKET_C elif isinstance(expr, ExprOp) and expr.op == 'segm': o = "%s:%s" % ( color_expr_html(expr.args[0], loc_db), |