From c1fe284ff5f8d547ebff27153c243e5ade9fd60e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= Date: Tue, 15 Sep 2026 13:34:41 +0200 Subject: [PATCH 1/4] Use raw string constants in fxregs.py. --- src/test/x86/fxregs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/x86/fxregs.py b/src/test/x86/fxregs.py index 775d23c03b5..f6c3cbbb7fe 100644 --- a/src/test/x86/fxregs.py +++ b/src/test/x86/fxregs.py @@ -18,7 +18,7 @@ expect_gdb(' = %d'%(i + 10)) send_gdb('show architecture') -have_64 = 0 == expect_list([re.compile('i386:x86-64"?\)'), re.compile('i386"?\)')]) +have_64 = 0 == expect_list([re.compile(r'i386:x86-64"?\)'), re.compile(r'i386"?\)')]) if have_64: for i in range(8,16): From df7a0064751126b3b0e64fc674a29afab325a661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= Date: Tue, 15 Sep 2026 14:26:04 +0200 Subject: [PATCH 2/4] Use raw string constants in step_thread.py. --- src/test/step_thread.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/step_thread.py b/src/test/step_thread.py index 672c351d751..c8b69c01b40 100644 --- a/src/test/step_thread.py +++ b/src/test/step_thread.py @@ -15,7 +15,7 @@ bps = set(('A', 'B', 'C')) for bp in bps: send_gdb('b '+ bp +'') - expect_gdb('Breakpoint \d') + expect_gdb(r'Breakpoint \d') expect_gdb(r'\(rr\)') @@ -58,7 +58,7 @@ # on i386, we sometimes stop in the middle of nowhere 'i386': ['(0x[0-9a-f]+ in )?__kernel_vsyscall', '(0x[0-9a-f]+ in )?_traced_raw_syscall', - '0x[0-9a-f]+ in \?\?', + r'0x[0-9a-f]+ in \?\?', '(0x[0-9a-f]+ in )?rr_page_start', '(0x[0-9a-f]+ in )?syscall_traced', '(0x[0-9a-f]+ in )?__lll_lock_wait', @@ -67,7 +67,7 @@ 'i386:x86-64': ['(0x[0-9a-f]+ in )?__lll_lock_wait', '(0x[0-9a-f]+ in )?pthread_barrier_wait', '(0x[0-9a-f]+ in )?futex_wait', - '0x0*70000002 in \?\?', + r'0x0*70000002 in \?\?', '(0x[0-9a-f]+ in )?syscall_traced', '(0x[0-9a-f]+ in )?rr_page_start' ], From 1e6a2a1aa4b0ff1028c48bf4b7d5856aa7112985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= Date: Tue, 15 Sep 2026 14:27:05 +0200 Subject: [PATCH 3/4] Use raw string constants in get_thread_list.py. --- src/test/get_thread_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/get_thread_list.py b/src/test/get_thread_list.py index ccae5cc4139..805056702e6 100644 --- a/src/test/get_thread_list.py +++ b/src/test/get_thread_list.py @@ -16,7 +16,7 @@ # on i386, we sometimes stop in the middle of nowhere 'i386': ['(0x[0-9a-f]+ in )?__kernel_vsyscall', '(0x[0-9a-f]+ in )?_traced_raw_syscall', - '0x[0-9a-f]+ in \?\?', + r'0x[0-9a-f]+ in \?\?', '(0x[0-9a-f]+ in )?syscall_traced', '(0x[0-9a-f]+ in )?rr_page_start', '(0x[0-9a-f]+ in )?__lll_lock_wait', @@ -25,7 +25,7 @@ 'i386:x86-64': ['(0x[0-9a-f]+ in )?__lll_lock_wait', '(0x[0-9a-f]+ in )?pthread_barrier_wait', '(0x[0-9a-f]+ in )?futex_wait', - '0x0*70000002 in \?\?', + r'0x0*70000002 in \?\?', '(0x[0-9a-f]+ in )?syscall_traced', '(0x[0-9a-f]+ in )?rr_page_start'], 'aarch64': ['(0x[0-9a-f]+ in )?syscall_traced', From 4d07fd5b07ef49a82a34d99d7098589762073acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= Date: Tue, 15 Sep 2026 14:28:08 +0200 Subject: [PATCH 4/4] Use raw string constants in proc_maps.py. --- src/test/proc_maps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/proc_maps.py b/src/test/proc_maps.py index 8826c8b07d0..ffcb63ef394 100644 --- a/src/test/proc_maps.py +++ b/src/test/proc_maps.py @@ -7,6 +7,6 @@ expect_gdb('Breakpoint 1') send_gdb('info proc mappings') -expect_gdb('\[vdso\]') +expect_gdb(r'\[vdso\]') ok()