MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / findsegment

Function findsegment

src/debugmem.cpp:3573–3587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3571}
3572
3573static struct debugsegtracker *findsegment(uaecptr addr, struct debugmemallocs **allocp)
3574{
3575 for (int i = 0; i < segtrackermax; i++) {
3576 struct debugsegtracker *seg = dsegt[i];
3577 if (!seg->allocid)
3578 continue;
3579 struct debugmemallocs *alloc = allocs[seg->allocid];
3580 if (addr >= alloc->start && addr < alloc->start + alloc->size) {
3581 if (allocp)
3582 *allocp = alloc;
3583 return seg;
3584 }
3585 }
3586 return NULL;
3587}
3588
3589static struct debugmemallocs *ismysegment(uaecptr addr)
3590{

Callers 2

debugmem_get_segmentFunction · 0.85
debugmem_list_segmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected