Revert "Show "x" when the condition instruction will not be taken (#74)"

This reverts commit 6c04e5368e.

Conflicts:
	pwndbg/disasm/color.py
pull/99/head
Zach Riggle 10 years ago
parent 290eb117f1
commit 1f6d65f80b

@ -76,7 +76,7 @@ class DisassemblyAssistant(object):
instruction.condition = c
def condition(self, instruction):
return None
return False
def enhance_next(self, instruction):
"""
@ -248,7 +248,7 @@ class DisassemblyAssistant(object):
for i, op in enumerate(ins.operands):
rv.append(' operands[%i] = %s' % (i, ops.get(op.type, op.type)))
#rv.append(' access = %s' % (access.get(op.access, op.access)))
rv.append(' access = %s' % (access.get(op.access, op.access)))
if op.int is not None:
rv.append(' int = %#x' % (op.int))

@ -42,7 +42,7 @@ class DisassemblyAssistant(pwndbg.disasm.arch.DisassemblyAssistant):
return None
if instruction.address != pwndbg.regs.pc:
return None
return False
cpsr = pwndbg.regs.cpsr

@ -64,6 +64,6 @@ def instruction(ins):
elif ins.condition:
asm = pwndbg.color.green(u'') + asm
else:
asm = pwndbg.color.red(u'') + asm
asm = ' ' + asm
return asm

@ -132,7 +132,7 @@ class DisassemblyAssistant(pwndbg.disasm.arch.DisassemblyAssistant):
# We can't reason about anything except the current instruction
if instruction.address != pwndbg.regs.pc:
return None
return False
efl = pwndbg.regs.eflags

Loading…
Cancel
Save