From 093f321b681f477f8d26e22cd2e0ea8dc6f313f9 Mon Sep 17 00:00:00 2001 From: Yaakuro Date: Mon, 4 Oct 2021 23:34:55 +0200 Subject: [PATCH] Fix issue that gives wrong results for running debugger (#4434) * Fix issue that gives wrong results for running debugger Signed-off-by: Yaakuro * Remove redundant part. Signed-off-by: Yaakuro --- .../Platform/Common/UnixLike/AzCore/Debug/Trace_UnixLike.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Framework/AzCore/Platform/Common/UnixLike/AzCore/Debug/Trace_UnixLike.cpp b/Code/Framework/AzCore/Platform/Common/UnixLike/AzCore/Debug/Trace_UnixLike.cpp index e9c0234ffa..f4d7db802b 100644 --- a/Code/Framework/AzCore/Platform/Common/UnixLike/AzCore/Debug/Trace_UnixLike.cpp +++ b/Code/Framework/AzCore/Platform/Common/UnixLike/AzCore/Debug/Trace_UnixLike.cpp @@ -38,7 +38,7 @@ namespace AZ { return false; } - for (size_t i = tracerPidOffset; i < numRead; ++i) + for (size_t i = tracerPidOffset + tracerPidString.length(); i < numRead; ++i) { if (!::isspace(processStatusView[i])) {