MCPcopy Create free account
hub / github.com/Vector35/debugger / AddOffset

Method AddOffset

core/debuggerstate.cpp:458–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457
458bool DebuggerBreakpoints::AddOffset(const ModuleNameAndOffset& address)
459{
460 if (!ContainsOffset(address))
461 {
462 m_breakpoints.push_back(address);
463 SerializeMetadata();
464
465 // If the adapter is already created, we ask it to add the breakpoint.
466 // Otherwise, all breakpoints will be added to the adapter when the adapter is created.
467 if (m_state->GetAdapter() && m_state->IsConnected())
468 {
469 m_state->GetAdapter()->AddBreakpoint(address);
470 return true;
471 }
472 return true;
473 }
474 return false;
475}
476
477
478bool DebuggerBreakpoints::RemoveAbsolute(uint64_t remoteAddress)

Callers 1

AddBreakpointMethod · 0.80

Calls 3

GetAdapterMethod · 0.45
IsConnectedMethod · 0.45
AddBreakpointMethod · 0.45

Tested by

no test coverage detected