GP-884: Improved location label (subheader) in dynamic listing

This commit is contained in:
Dan 2021-04-27 15:36:23 -04:00
parent 983b78333e
commit c70496680d
5 changed files with 74 additions and 20 deletions

View file

@ -52,10 +52,10 @@ public class GdbModelTargetMemoryRegion
protected static String computeDisplay(GdbMemoryMapping mapping) {
// NOTE: This deviates from GDB's table display, as it'd be confusing in isolation
if (mapping.getObjfile() == null || mapping.getObjfile().length() == 0) {
return String.format("[0x%x-0x%x] (no file)", mapping.getStart(), mapping.getEnd());
return String.format("?? [0x%x-0x%x]", mapping.getStart(), mapping.getEnd());
}
return String.format("[0x%x-0x%x] %s(0x%x)", mapping.getStart(), mapping.getEnd(),
mapping.getObjfile(), mapping.getOffset());
return String.format("%s [0x%x-0x%x] (0x%x)", mapping.getObjfile(), mapping.getStart(),
mapping.getEnd(), mapping.getOffset());
}
protected AddressRangeImpl range;