From 7aef027ebce5655b7ea76aab4b7d11fcd0d3c807 Mon Sep 17 00:00:00 2001 From: mrexodia Date: Tue, 25 Jul 2017 16:19:06 +0200 Subject: [PATCH] GUI: fixed a crash in the FlickerThread (closes #1651) --- src/gui/Src/Gui/LogView.cpp | 2 +- src/gui/Src/Gui/MemoryMapView.cpp | 2 +- src/gui/Src/Gui/SymbolView.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/Src/Gui/LogView.cpp b/src/gui/Src/Gui/LogView.cpp index bed13b3c..b28c872a 100644 --- a/src/gui/Src/Gui/LogView.cpp +++ b/src/gui/Src/Gui/LogView.cpp @@ -284,7 +284,7 @@ void LogView::onAnchorClicked(const QUrl & link) DbgCmdExec(QString("disasm %1").arg(link.fragment()).toUtf8().constData()); else { - DbgCmdExec(QString("dump %1").arg(link.fragment()).toUtf8().constData()); + DbgCmdExecDirect(QString("dump %1").arg(link.fragment()).toUtf8().constData()); emit Bridge::getBridge()->getDumpAttention(); } } diff --git a/src/gui/Src/Gui/MemoryMapView.cpp b/src/gui/Src/Gui/MemoryMapView.cpp index 6915a714..c1e7a357 100644 --- a/src/gui/Src/Gui/MemoryMapView.cpp +++ b/src/gui/Src/Gui/MemoryMapView.cpp @@ -420,7 +420,7 @@ void MemoryMapView::stateChangedSlot(DBGSTATE state) void MemoryMapView::followDumpSlot() { - DbgCmdExec(QString("dump %1").arg(getCellContent(getInitialSelection(), 0)).toUtf8().constData()); + DbgCmdExecDirect(QString("dump %1").arg(getCellContent(getInitialSelection(), 0)).toUtf8().constData()); } void MemoryMapView::followDisassemblerSlot() diff --git a/src/gui/Src/Gui/SymbolView.cpp b/src/gui/Src/Gui/SymbolView.cpp index 7b85e4ce..12682494 100644 --- a/src/gui/Src/Gui/SymbolView.cpp +++ b/src/gui/Src/Gui/SymbolView.cpp @@ -410,7 +410,7 @@ void SymbolView::symbolFollow() void SymbolView::symbolFollowDump() { - DbgCmdExec(QString("dump " + mSearchListView->mCurList->getCellContent(mSearchListView->mCurList->getInitialSelection(), 0)).toUtf8().constData()); + DbgCmdExecDirect(QString("dump " + mSearchListView->mCurList->getCellContent(mSearchListView->mCurList->getInitialSelection(), 0)).toUtf8().constData()); } void SymbolView::symbolFollowImport() @@ -425,7 +425,7 @@ void SymbolView::symbolFollowImport() } else { - DbgCmdExec(QString("dump %1").arg(ToPtrString(addr)).toUtf8().constData()); + DbgCmdExecDirect(QString("dump %1").arg(ToPtrString(addr)).toUtf8().constData()); emit Bridge::getBridge()->getDumpAttention(); } }