Skip to content

Commit

Permalink
Skip the log messages received as a result of pending breakpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Dec 1, 2016
1 parent b947d01 commit c395f7d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions OMEdit/OMEditGUI/Debugger/GDB/GDBAdapter.cpp
Expand Up @@ -1158,9 +1158,15 @@ void GDBAdapter::handleGDBMIConsoleStream(GDBMIStreamRecord *pGDBMIStreamRecord)
*/
void GDBAdapter::handleGDBMILogStream(GDBMIStreamRecord *pGDBMIStreamRecord)
{
QString LogData = StringHandler::unparse(pGDBMIStreamRecord->value.c_str());
mPendingLogStreamOutput += LogData;
MainWindow::instance()->getTargetOutputWidget()->logDebuggerErrorOutput(LogData);
QString logData = StringHandler::unparse(pGDBMIStreamRecord->value.c_str());
mPendingLogStreamOutput += logData;
/*! \note Skip the log messages we get as a result of pending breakpoint.
* e.g., No source file named Catch.omc.
*/
if (logData.startsWith("No source file named")) {
return;
}
MainWindow::instance()->getTargetOutputWidget()->logDebuggerErrorOutput(logData);
}

/*!
Expand Down

0 comments on commit c395f7d

Please sign in to comment.