MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEUD_DebugBreakpoint

Function FCEUD_DebugBreakpoint

src/drivers/sdl/debugger.cpp:1695–1710  ·  view source on GitHub ↗

this code enters the debugger when a breakpoint was hit

Source from the content-addressed store, hash-verified

1693
1694//this code enters the debugger when a breakpoint was hit
1695void FCEUD_DebugBreakpoint(int bp_num)
1696{
1697 //printf("Breakpoint Hit: %i \n", bp_num);
1698
1699 breakpoint_hit = 1;
1700
1701 updateAllDebugWindows();
1702
1703 winDebuggerLoopStep();
1704
1705 while(FCEUI_EmulationPaused() && !FCEUI_EmulationFrameStepped())
1706 {
1707 usleep(50000);
1708 winDebuggerLoopStep();
1709 }
1710}
1711
1712void FCEUD_FlushTrace()
1713{

Callers

nothing calls this directly

Calls 4

updateAllDebugWindowsFunction · 0.85
winDebuggerLoopStepFunction · 0.85
FCEUI_EmulationPausedFunction · 0.85

Tested by

no test coverage detected