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

Method ContainsAbsolute

core/debuggerstate.cpp:533–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531
532
533bool DebuggerBreakpoints::ContainsAbsolute(uint64_t address)
534{
535 if (!m_state->GetAdapter())
536 return false;
537
538 // We need to convert every ModuleAndOffset to absolute address and compare with the input address
539 // Because every ModuleAndOffset can be converted to an absolute address, but there is no guarantee that it works
540 // backward
541 // Well, that is because lldb does not report the size of the loaded libraries, so it is currently screwed up
542 for (const ModuleNameAndOffset& breakpoint : m_breakpoints)
543 {
544 uint64_t absolute = m_state->GetModules()->RelativeAddressToAbsolute(breakpoint);
545 if (absolute == address)
546 return true;
547 }
548 return false;
549}
550
551
552void DebuggerBreakpoints::SerializeMetadata()

Callers 2

RunToAndWaitInternalMethod · 0.80

Calls 3

GetAdapterMethod · 0.45
GetModulesMethod · 0.45

Tested by

no test coverage detected