mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
nxgdb: fix remote-register regular expression match
The code clearly expects the output of the 'maint print remote-registers' to be indented by white-space character but at least in my case it is not. This changes the match to consume any number of white-space characters before it encounteres the register name. Signed-off-by: Karel Kočí <cynerd@email.cz>
This commit is contained in:
@@ -65,7 +65,7 @@ class Registers:
|
|||||||
|
|
||||||
# Name Nr Rel Offset Size Type Rmt Nr g/G Offset
|
# Name Nr Rel Offset Size Type Rmt Nr g/G Offset
|
||||||
match = re.match(
|
match = re.match(
|
||||||
r"\s(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\S+)(?:\s+(\d+)\s+(\d+))?",
|
r"\s*(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\S+)(?:\s+(\d+)\s+(\d+))?",
|
||||||
line,
|
line,
|
||||||
)
|
)
|
||||||
if not match:
|
if not match:
|
||||||
|
|||||||
Reference in New Issue
Block a user