| 3571 | } |
| 3572 | |
| 3573 | static 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 | |
| 3589 | static struct debugmemallocs *ismysegment(uaecptr addr) |
| 3590 | { |
no outgoing calls
no test coverage detected