TUI: fix gdb version (#2987)

pull/2988/head^2
patryk4815 7 months ago committed by GitHub
parent 0095589443
commit 10b3e9c298
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -13,6 +13,7 @@ from pwndbg.commands.context import context
from pwndbg.commands.context import context_sections
from pwndbg.commands.context import contextoutput
from pwndbg.commands.context import resetcontextoutput
from pwndbg.gdblib import gdb_version
class ContextTUIWindow:
@ -200,7 +201,7 @@ class ContextTUIWindow:
# It resets other styling attributes like bold too but it's better
# than having wrong colors.
# https://github.com/pwndbg/pwndbg/issues/2654
if tuple(map(int, gdb.VERSION.split(".")[:2])) < (16, 3):
if gdb_version < (16, 3):
___ansi_substr = _ansi_substr
_ansi_substr = (
lambda *a, **kw: ContextTUIWindow.___ansi_substr(*a, **kw)

Loading…
Cancel
Save