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

Method asmViewCtxMenuAddBP

src/drivers/Qt/ConsoleDebugger.cpp:3432–3460  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3430}
3431//----------------------------------------------------------------------------
3432void ConsoleDebugger::asmViewCtxMenuAddBP(void)
3433{
3434 int bpNum;
3435 watchpointinfo wp;
3436
3437 wp.address = asmView->getCtxMenuAddr();
3438 wp.endaddress = 0;
3439 wp.flags = WP_X | WP_E;
3440 wp.condText = 0;
3441 wp.desc = NULL;
3442
3443 if ( asmView->getCtxMenuAddrType() )
3444 {
3445 wp.flags |= BT_R;
3446 }
3447
3448 bpNum = asmView->isBreakpointAtAddr( wp.address, GetNesFileAddress(wp.address) );
3449
3450 if ( bpNum >= 0 )
3451 {
3452 openBpEditWindow( bpNum, &watchpoint[bpNum] );
3453 }
3454 else
3455 {
3456 openBpEditWindow( -1, &wp );
3457 }
3458
3459 asmView->determineLineBreakpoints();
3460}
3461//----------------------------------------------------------------------------
3462void ConsoleDebugger::asmViewCtxMenuAddBM(void)
3463{

Callers 1

keyPressEventMethod · 0.80

Calls 5

GetNesFileAddressFunction · 0.85
getCtxMenuAddrMethod · 0.80
getCtxMenuAddrTypeMethod · 0.80
isBreakpointAtAddrMethod · 0.80

Tested by

no test coverage detected