diff options
author | Tim Newsome <tim@sifive.com> | 2022-03-03 09:59:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 09:59:34 -0800 |
commit | bd050de178cb1ffcfaae6bf1c79e6e640600b22f (patch) | |
tree | 4ade04c5c2628b176baab2099161ddcc3ca04694 /debug | |
parent | 6db14247008faba2156bb2e4048667d7619b43da (diff) | |
download | riscv-tests-bd050de178cb1ffcfaae6bf1c79e6e640600b22f.zip riscv-tests-bd050de178cb1ffcfaae6bf1c79e6e640600b22f.tar.gz riscv-tests-bd050de178cb1ffcfaae6bf1c79e6e640600b22f.tar.bz2 |
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.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/testlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
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())) |