From ad5fd04708398ffadc0904e0f067fad1e546fa46 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 28 Dec 2024 17:08:22 +0800 Subject: [PATCH] minor fix: (gdb) prompt --- RedPandaIDE/debugger/debugger.cpp | 2 +- RedPandaIDE/debugger/gdbmidebugger.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RedPandaIDE/debugger/debugger.cpp b/RedPandaIDE/debugger/debugger.cpp index ec7d7e914..0da933afd 100644 --- a/RedPandaIDE/debugger/debugger.cpp +++ b/RedPandaIDE/debugger/debugger.cpp @@ -1025,7 +1025,7 @@ void Debugger::syncFinishedParsing() for (const QString& line:mClient->consoleOutput()) { pMainWindow->addDebugOutput(line); } - //pMainWindow->addDebugOutput("(gdb)"); + pMainWindow->addDebugOutput("(gdb)"); } } } diff --git a/RedPandaIDE/debugger/gdbmidebugger.cpp b/RedPandaIDE/debugger/gdbmidebugger.cpp index b3099fc1c..fddcdbe7e 100644 --- a/RedPandaIDE/debugger/gdbmidebugger.cpp +++ b/RedPandaIDE/debugger/gdbmidebugger.cpp @@ -928,9 +928,9 @@ void GDBMIDebuggerClient::processDebugOutput(const QByteArray& debugOutput) case '+': // status async output case '=': // notify async output break; - case '(': - if (line.startsWith("(gdb)")) - mConsoleOutput.append(line); + case '(': // Prompt (gdb) +// if (line.startsWith("(gdb)")) +// mConsoleOutput.append(line); break; } }