forked from OSchip/llvm-project
Properly specify the regex used to match register indexes.
Summary: Something like "core:1" would match and try to be interpreted by the following code otherwise. Test Plan: Run tests and make sure the ones failing previously now pass. Reviewers: tfiala, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D6257 llvm-svn: 221980
This commit is contained in:
parent
09f6abe8d8
commit
5109a7938d
|
@ -734,7 +734,7 @@ class GdbRemoteTestCaseBase(TestBase):
|
|||
|
||||
registers = {}
|
||||
for (key, val) in kv_dict.items():
|
||||
if re.match(r"^[0-9a-fA-F]+", key):
|
||||
if re.match(r"^[0-9a-fA-F]+$", key):
|
||||
registers[int(key, 16)] = val
|
||||
return registers
|
||||
|
||||
|
|
Loading…
Reference in New Issue