add lower case a-f as address match

As the addresses were only matched against upper case letters
all registers with lower case characters were not correctly parsed
and had zero values

Change-Id: Idc3da0a33b9f075d7a209cad74768e81cced2d67
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Sebastian Verling
2020-03-09 15:41:10 +01:00
committed by André Hartmann
parent 99c4e7c94f
commit 38e13e4216

View File

@@ -3261,7 +3261,7 @@ void GdbEngine::handlePeripheralRegisterListValues(
const QString output = response.consoleStreamOutput;
// Regexp to match for '0x50060800:\t0\n'.
const QRegularExpression re("^(0x[0-9A-F]+):\\t(\\d+)\\n$");
const QRegularExpression re("^(0x[0-9A-Fa-f]+):\\t(\\d+)\\n$");
const QRegularExpressionMatch m = re.match(output);
if (!m.hasMatch())
return;