mirror of
https://github.com/apache/nuttx.git
synced 2025-12-06 17:23:49 +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
|
||||
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,
|
||||
)
|
||||
if not match:
|
||||
|
||||
Reference in New Issue
Block a user