@@ -103,13 +103,13 @@ prompt, see the command `python print(gdb.prompt.prompt_help())`''',
103
103
104
104
See the `prompt` attribute. This value is used as a Python format string where
105
105
`{pid}` is expanded with the process identifier of the target program.''' ,
106
- 'default' : '\[\e[1;35m\]>>>\[\e[0m\]'
106
+ 'default' : r '\[\e[1;35m\]>>>\[\e[0m\]'
107
107
},
108
108
'prompt_not_running' : {
109
109
'doc' : '''Define the value of `{status}` when the target program is running.
110
110
111
111
See the `prompt` attribute. This value is used as a Python format string.''' ,
112
- 'default' : '\[\e[90m\]>>>\[\e[0m\]'
112
+ 'default' : r '\[\e[90m\]>>>\[\e[0m\]'
113
113
},
114
114
# divider
115
115
'omit_divider' : {
@@ -2099,7 +2099,7 @@ architectures different from x86 setting this attribute might be mandatory.''',
2099
2099
if len (fields ) != 7 :
2100
2100
continue
2101
2101
name , _ , _ , _ , _ , _ , groups = fields
2102
- if not re .match ('\w' , name ):
2102
+ if not re .match (r '\w' , name ):
2103
2103
continue
2104
2104
for group in groups .split (',' ):
2105
2105
if group in (match_groups or ('general' ,)):
@@ -2187,7 +2187,7 @@ class Expressions(Dashboard.Module):
2187
2187
default_radix = Expressions .get_default_radix ()
2188
2188
for number , expression in enumerate (self .table , start = 1 ):
2189
2189
label = expression
2190
- match = re .match ('^/(\d+) +(.+)$' , expression )
2190
+ match = re .match (r '^/(\d+) +(.+)$' , expression )
2191
2191
try :
2192
2192
if match :
2193
2193
radix , expression = match .groups ()
@@ -2262,7 +2262,7 @@ class Expressions(Dashboard.Module):
2262
2262
except RuntimeError :
2263
2263
# XXX this is a fix for GDB <8.1.x see #161
2264
2264
message = run ('show output-radix' )
2265
- match = re .match ('^Default output radix for printing of values is (\d+)\.$' , message )
2265
+ match = re .match (r '^Default output radix for printing of values is (\d+)\.$' , message )
2266
2266
return match .groups ()[0 ] if match else 10 # fallback
2267
2267
2268
2268
# XXX workaround to support BP_BREAKPOINT in older GDB versions
0 commit comments