Skip to content

Commit

Permalink
GUI: run until selection in graph view (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkthx authored and mrexodia committed Oct 29, 2016
1 parent 4befc5e commit ee3a6db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gui/Src/Gui/MainWindow.cpp
Expand Up @@ -1206,10 +1206,16 @@ void MainWindow::setCheckedMenuEntry(int hEntry, bool checked)

void MainWindow::runSelection()
{
QString command;

if(!DbgIsDebugging())
return;

QString command = "bp " + ToPtrString(mCpuWidget->getDisasmWidget()->getSelectedVa()) + ", ss";
if (mGraphView->hasFocus())
command = "bp " + ToPtrString(mGraphView->get_cursor_pos()) + ", ss";
else
command = "bp " + ToPtrString(mCpuWidget->getDisasmWidget()->getSelectedVa()) + ", ss";

if(DbgCmdExecDirect(command.toUtf8().constData()))
DbgCmdExecDirect("run");
}
Expand Down

0 comments on commit ee3a6db

Please sign in to comment.