From 71f5a7c056624a36d658fc2dc0f6fc4f6616fc47 Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Wed, 10 Nov 2021 12:57:18 +0800 Subject: [PATCH] work save --- RedPandaIDE/debugger.cpp | 30 ++++++++++++++++++++---------- RedPandaIDE/debugger.h | 6 +++--- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/RedPandaIDE/debugger.cpp b/RedPandaIDE/debugger.cpp index 4cd44a40..5f77e1ab 100644 --- a/RedPandaIDE/debugger.cpp +++ b/RedPandaIDE/debugger.cpp @@ -1159,7 +1159,16 @@ AnnotationType DebugReader::peekNextAnnotation() return result; } -void DebugReader::processDebugOutput() +void DebugReader::processResultRecord(const QString &line) +{ + if (line.startsWith("^exit")) { + doprocessexited = true; + return; + } + +} + +void DebugReader::processDebugOutput(const QString& debugOutput) { // Only update once per update at most //WatchView.Items.BeginUpdate; @@ -1186,13 +1195,11 @@ void DebugReader::processDebugOutput() doupdatecpuwindow = false; doreceivedsfwarning = false; - QStringList lines = TextToLines(mOutput); + QStringList lines = TextToLines(debugOutput); - mOutputLine = 0; - while (mOutputLine