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

Function GetModuleHighestAddress

core/adapters/lldbadapter.cpp:813–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811
812
813static uint64_t GetModuleHighestAddress(SBModule& module, SBTarget& target)
814{
815 uint64_t largestAddress = 0;
816 const size_t numSections = module.GetNumSections();
817 for (size_t i = 0; i < numSections; i++)
818 {
819 SBSection section = module.GetSectionAtIndex(i);
820 uint64_t start = section.GetLoadAddress(target);
821 size_t size = section.GetByteSize();
822 uint64_t end = start + size;
823 if (end > largestAddress)
824 largestAddress = end;
825 }
826 return largestAddress;
827}
828
829
830std::vector<DebugModule> LldbAdapter::GetModuleList()

Callers 1

GetModuleListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected