Allow using regs command for any valid register (#2039)

pull/2040/head
Gulshan Singh 2 years ago committed by GitHub
parent 8496d1a428
commit 604d2e4067
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -579,12 +579,11 @@ def get_regs(regs: List[str] = None):
if reg is None:
continue
if reg not in pwndbg.gdblib.regs:
value = pwndbg.gdblib.regs[reg]
if value is None:
print(message.warn("Unknown register: %r" % reg))
continue
value = pwndbg.gdblib.regs[reg]
# Make the register stand out and give a color if changed
regname = C.register(reg.ljust(4).upper())
if reg in changed:

Loading…
Cancel
Save