From bd050de178cb1ffcfaae6bf1c79e6e640600b22f Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 3 Mar 2022 09:59:34 -0800 Subject: With new OpenOCD, gdb prints thread info differently (#373) It includes the name in quotes: ```* 2 Thread 1 "Current Execution" (Name: Current Execution) 0x10000100 in main``` Just ignore that part. --- debug/testlib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug/testlib.py b/debug/testlib.py index bb4ac25..4ebed43 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -870,7 +870,8 @@ class Gdb: for line in output.splitlines(): m = re.match( r"[\s\*]*(\d+)\s*" - r"(Remote target|Thread (\d+)\s*\(Name: ([^\)]+))" + r'(Remote target' + r'|Thread (\d+)\s*(?:".*?")?\s*\(Name: ([^\)]+))' r"\s*(.*)", line) if m: threads.append(Thread(*m.groups())) -- cgit v1.1