Skip to content
Snippets Groups Projects
Commit 1cf828ec authored by whh8b's avatar whh8b
Browse files

Add function to print a memory space.

parent 2e2d1dc9
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,15 @@ void MemorySpace_t::MergeFreeRange(RangeAddress_t addr)
}
}
void MemorySpace_t::PrintMemorySpace(std::ostream &out)
{
for( list<Range_t>::iterator it=free_ranges.begin();
it!=free_ranges.end();
++it)
{
Range_t r = *it;
out <<"0x"<<std::hex<<r.GetStart()<<" - 0x"<<std::hex<<r.GetEnd()<<endl;
}
}
std::list<Range_t>::iterator MemorySpace_t::FindFreeRange(RangeAddress_t addr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment