Qt: Add debugger UI

This commit is contained in:
Connor McLaughlin
2020-12-17 01:18:13 +10:00
parent 3b23542ec9
commit ea996a0305
28 changed files with 2093 additions and 41 deletions

View File

@ -821,11 +821,13 @@ void QtHostInterface::resetSystem()
HostInterface::ResetSystem();
}
void QtHostInterface::pauseSystem(bool paused)
void QtHostInterface::pauseSystem(bool paused, bool wait_until_paused /* = false */)
{
if (!isOnWorkerThread())
{
QMetaObject::invokeMethod(this, "pauseSystem", Qt::QueuedConnection, Q_ARG(bool, paused));
QMetaObject::invokeMethod(this, "pauseSystem",
wait_until_paused ? Qt::BlockingQueuedConnection : Qt::QueuedConnection,
Q_ARG(bool, paused), Q_ARG(bool, wait_until_paused));
return;
}
@ -1222,6 +1224,21 @@ void QtHostInterface::stopDumpingAudio()
StopDumpingAudio();
}
void QtHostInterface::singleStepCPU()
{
if (!isOnWorkerThread())
{
QMetaObject::invokeMethod(this, "singleStepCPU", Qt::BlockingQueuedConnection);
return;
}
if (!System::IsValid())
return;
System::SingleStepCPU();
renderDisplay();
}
void QtHostInterface::dumpRAM(const QString& filename)
{
if (!isOnWorkerThread())