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

Method ContainsOffset

core/debuggerstate.cpp:520–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518
519
520bool DebuggerBreakpoints::ContainsOffset(const ModuleNameAndOffset& address)
521{
522 // If there is no backend, then only check if the breakpoint is in the list
523 // This is useful when we deal with the breakpoint before the target is launched
524 if (!m_state->GetAdapter())
525 return std::find(m_breakpoints.begin(), m_breakpoints.end(), address) != m_breakpoints.end();
526
527 // When the backend is live, convert the relative address to absolute address and check its existence
528 uint64_t absolute = m_state->GetModules()->RelativeAddressToAbsolute(address);
529 return ContainsAbsolute(absolute);
530}
531
532
533bool DebuggerBreakpoints::ContainsAbsolute(uint64_t address)

Callers 1

Calls 3

GetAdapterMethod · 0.45
GetModulesMethod · 0.45

Tested by

no test coverage detected