Skip to content

Commit

Permalink
Fix context regs order (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
borismol committed Jun 28, 2021
1 parent c964565 commit cdb4896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gef.py
Expand Up @@ -7032,7 +7032,8 @@ def do_invoke(self, argv, *args, **kwargs):

args = kwargs["arguments"]
if args.registers and args.registers[0]:
valid_regs = list(set(current_arch.all_registers) & set(args.registers))
required_regs = set(args.registers)
valid_regs = [reg for reg in current_arch.all_registers if reg in required_regs]
if valid_regs:
regs = valid_regs

Expand Down

0 comments on commit cdb4896

Please sign in to comment.