valgrind-monitor.py regular expressions should use raw strings
commit0fbfbe05028ad18efda786a256a2738d2c231ed4
authorMark Wielaard <mark@klomp.org>
Fri, 17 Nov 2023 12:31:52 +0000 (17 13:31 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 17 Nov 2023 12:36:46 +0000 (17 13:36 +0100)
treece670bd1986662a5ad0e4e4d1b7158e9ebff42b3
parent3622adb05579714affb5fdb1cfe7266d3783bc2a
valgrind-monitor.py regular expressions should use raw strings

With python 3.12 gdb will produce the following SyntaxWarning when
loading valgrind-monitor-def.py:

  /usr/share/gdb/auto-load/valgrind-monitor-def.py:214:
  SyntaxWarning: invalid escape sequence '\['
    if re.fullmatch("^0x[0123456789ABCDEFabcdef]+\[[^\[\]]+\]$", arg_str):

In a future python version this will become an SyntaxError.

Use a raw strings for the regular expression.

https://bugs.kde.org/show_bug.cgi?id=476708
NEWS
coregrind/m_gdbserver/valgrind-monitor-def.py