pwndbg/pwndbg

Move saving of old regs to context regs?

Open

#3 522 ouverte le 21 déc. 2025

Voir sur GitHub
 (11 commentaires) (0 réactions) (0 assignés)Python (5 820 stars) (776 forks)batch import
code cleanupenhancementgood first issuehelp wanted

Description

https://github.com/pwndbg/pwndbg/blob/a5651663fae15c17aaa4ffe96055e074e19f8b4e/pwndbg/aglib/regs.py#L315-L323

TL;DR:

  • we keep last & previous registers as of today
  • this is only needed to highlight the registers whose values differ from the previous one when displaying registers in the context (can be done with just regs or when set context-sections regs was done)

But... if one doesn't display regs in context, this keeping track still happens.

So maybe we should move it to context_regs function instead?

There are some disadventages to this - if regs would be not displayed, the keeping track is not happening. But do we care that much?

Guide contributeur