----------------------------------------------------------------------------
| 4362 | } |
| 4363 | //---------------------------------------------------------------------------- |
| 4364 | void ConsoleDebugger::updatePeriodic(void) |
| 4365 | { |
| 4366 | bool buttonEnable; |
| 4367 | QTreeWidgetItem *item; |
| 4368 | |
| 4369 | //printf("Update Periodic\n"); |
| 4370 | |
| 4371 | if ( bpNotifyReq ) |
| 4372 | { |
| 4373 | FCEU_WRAPPER_LOCK(); |
| 4374 | breakPointNotify( lastBpIdx ); |
| 4375 | FCEU_WRAPPER_UNLOCK(); |
| 4376 | bpNotifyReq = false; |
| 4377 | } |
| 4378 | |
| 4379 | if ( windowUpdateReq != QAsmView::UPDATE_NONE ) |
| 4380 | { |
| 4381 | FCEU_WRAPPER_LOCK(); |
| 4382 | updateWindowData(windowUpdateReq); |
| 4383 | FCEU_WRAPPER_UNLOCK(); |
| 4384 | } |
| 4385 | asmView->update(); |
| 4386 | |
| 4387 | if ( FCEUI_EmulationPaused() && !FCEUI_EmulationFrameStepped()) |
| 4388 | { |
| 4389 | if ( waitingAtBp ) |
| 4390 | { |
| 4391 | switch ( lastBpIdx ) |
| 4392 | { |
| 4393 | case BREAK_TYPE_STEP: |
| 4394 | emuStatLbl->setText( tr(" Emulator Paused on Step") ); |
| 4395 | break; |
| 4396 | case BREAK_TYPE_BADOP: |
| 4397 | emuStatLbl->setText( tr(" Emulator Paused on Bad Opcode") ); |
| 4398 | break; |
| 4399 | case BREAK_TYPE_CYCLES_EXCEED: |
| 4400 | emuStatLbl->setText( tr(" Emulator Paused on Cycle Count Exceedance") ); |
| 4401 | break; |
| 4402 | case BREAK_TYPE_INSTRUCTIONS_EXCEED: |
| 4403 | emuStatLbl->setText( tr(" Emulator Paused on Instruction Count Exceedance") ); |
| 4404 | break; |
| 4405 | case BREAK_TYPE_LUA: |
| 4406 | emuStatLbl->setText( tr(" Emulator Paused on Lua Breakpoint") ); |
| 4407 | break; |
| 4408 | case BREAK_TYPE_UNLOGGED_CODE: |
| 4409 | emuStatLbl->setText( tr(" Emulator Paused on Unlogged Code") ); |
| 4410 | break; |
| 4411 | case BREAK_TYPE_UNLOGGED_DATA: |
| 4412 | emuStatLbl->setText( tr(" Emulator Paused on Unlogged Data") ); |
| 4413 | break; |
| 4414 | default: |
| 4415 | if ( lastBpIdx >= 0 ) |
| 4416 | { |
| 4417 | char stmp[128]; |
| 4418 | sprintf( stmp, " Emulator Stopped / Paused at Breakpoint: %i", lastBpIdx ); |
| 4419 | emuStatLbl->setText( tr(stmp) ); |
| 4420 | } |
| 4421 | else |
nothing calls this directly
no test coverage detected