mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-884: Improved location label (subheader) in dynamic listing
This commit is contained in:
parent
983b78333e
commit
c70496680d
5 changed files with 74 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue