| 290 | } |
| 291 | |
| 292 | static void debugreportsegment(struct debugsegtracker *seg, bool verbose) |
| 293 | { |
| 294 | struct debugmemallocs *alloc = allocs[seg->allocid]; |
| 295 | int parentid = alloc->id; |
| 296 | for (int i = 0; i < MAX_DEBUGMEMALLOCS; i++) { |
| 297 | struct debugmemallocs *a = allocs[i]; |
| 298 | if (a->parentid == parentid) { |
| 299 | if (verbose) { |
| 300 | console_out_f(_T("Segment %d (%s): %08x %08x - %08x (%d)\n"), |
| 301 | a->internalid, seg->name, a->idtype, a->start, a->start + a->size - 1, a->size); |
| 302 | } else { |
| 303 | console_out_f(_T("Segment %d: %08x %08x - %08x (%d)\n"), |
| 304 | a->internalid, a->idtype, a->start, a->start + a->size - 1, a->size); |
| 305 | } |
| 306 | } |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | static void debugreportalloc(struct debugmemallocs *a) |
| 311 | { |
no test coverage detected