void Debugger_Disasm::SetThreadStatus(ThreadStatus status) { EmuThread_LockDraw(true); __KernelChangeThreadState(threadRowSelected->data(0,Qt::UserRole).toInt(), status); EmuThread_LockDraw(false); UpdateThread(); }
void Debugger_Disasm::UpdateDialog() { if(!isVisible()) return; ui->DisasmView->setAlign(cpu->getInstructionSize(0)); ui->DisasmView->redraw(); ui->RegList->redraw(); vfpudlg->Update(); UpdateBreakpoints(); UpdateThread(); UpdateDisplayList(); char tempTicks[24]; sprintf(tempTicks, "%lld", CoreTiming::GetTicks()); ui->debugCount->setText(QString("Ctr : ") + tempTicks); /*ui->callStack->clear(); u32 pc = currentMIPS->pc; u32 ra = currentMIPS->r[MIPS_REG_RA]; u32 addr = Memory::ReadUnchecked_U32(pc); int count=1; char addr_[12]; sprintf(addr_, "0x%08x",pc); ui->callStack->addItem(new QListWidgetItem(addr_)); addr = Memory::ReadUnchecked_U32(ra); sprintf(addr_, "0x%08x",ra); ui->callStack->addItem(new QListWidgetItem(addr_)); count++; while (addr != 0xFFFFFFFF && addr!=0 && Memory::IsValidAddress(addr+4) && count++<20) { u32 fun = Memory::ReadUnchecked_U32(addr+4); sprintf(addr_, "0x%08x",fun); ui->callStack->addItem(new QListWidgetItem(addr_)); addr = Memory::ReadUnchecked_U32(addr); }*/ if(mainWindow->GetDialogMemory()) mainWindow->GetDialogMemory()->Update(); }
void Debugger_Disasm::UpdateDialog() { if(!isVisible()) return; ui->DisasmView->setAlign(cpu->getInstructionSize(0)); ui->DisasmView->redraw(); ui->RegList->redraw(); vfpudlg->Update(); UpdateBreakpoints(); UpdateThread(); UpdateDisplayList(); UpdateCallstack(); char tempTicks[24]; sprintf(tempTicks, "%lld", CoreTiming::GetTicks()); ui->debugCount->setText(QString("Ctr : ") + tempTicks); if(mainWindow->GetDialogMemory()) mainWindow->GetDialogMemory()->Update(); }
void Debugger_Disasm::SetThreadStatus(ThreadStatus status) { __KernelChangeThreadState(threadRowSelected->data(0,Qt::UserRole).toInt(), status); UpdateThread(); }