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:
Stephane Sezer 2014-11-14 09:46:21 +00:00
parent 09f6abe8d8
commit 5109a7938d
1 changed files with 1 additions and 1 deletions

View File

@ -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