-
Notifications
You must be signed in to change notification settings - Fork 826
Open
Description
There's a SyntaxWarning since Python 3.12 using peda.py at GDB startup. This was introduced here when the DeprecationWarning was upgraded to SyntaxWarning.
/usr/share/peda/peda.py:151: SyntaxWarning: invalid escape sequence '['
p = re.compile("(.)[(.)]") # DWORD PTR [esi+eax1]
/usr/share/peda/peda.py:373: SyntaxWarning: invalid escape sequence '\s'
p = re.compile(".exec file:\s`(.)'")
/usr/share/peda/peda.py:550: SyntaxWarning: invalid escape sequence '\d'
p = re.compile("^(\d*)\s*(.breakpoint)\s(keep|del)\s*(y|n)\s*(0x[^ ])\s(.*)")
[...]
It should be fixed by using raw string literals (r"...").
zetef, dimich-dmb, ibuki-aizawa and No-Github
Metadata
Metadata
Assignees
Labels
No labels