summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2024-01-25 16:49:33 +0100
committerRobert Griebl <robert.griebl@qt.io>2024-01-25 17:01:50 +0100
commit0a192b17146426109fbe0fc62a04a45f8a5d4a02 (patch)
treeb2ac765d55906f6bca845be5c09e1c77bdec8fde
parent9dd4bc6e846d4888dcfd433caa21211561ae55ab (diff)
Fix smaps parser not working on ARM64
Change-Id: Icf528d14bf097613f36c98aaa82805bd6f743866 Pick-to: 6.7 6.5 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
-rw-r--r--src/monitor-lib/processreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor-lib/processreader.cpp b/src/monitor-lib/processreader.cpp
index f454df9d..fdbadbe5 100644
--- a/src/monitor-lib/processreader.cpp
+++ b/src/monitor-lib/processreader.cpp
@@ -143,7 +143,7 @@ bool ProcessReader::readSmaps(const QByteArray &smapsFile, Memory &mem)
ok = false;
int blockLen = 0;
while (fgets(line, lineLen, sf) && !ok) {
- if (!(line[0] < '0' || line[0] > '9') && (line[0] < 'a' || line[0] > 'f'))
+ if ((line[0] >= '0' && line[0] <= '9') || (line[0] >= 'a' && line[0] <= 'f'))
ok = true;
++blockLen;
}