mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +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
|
@ -90,6 +90,7 @@ public class DbgModelTargetMemoryRegionImpl extends DbgModelTargetObjectImpl
|
|||
isExec = region.isExec();
|
||||
|
||||
this.changeAttributes(List.of(), List.of(), Map.of( //
|
||||
DISPLAY_ATTRIBUTE_NAME, computeDisplay(region), //
|
||||
MEMORY_ATTRIBUTE_NAME, memory, //
|
||||
RANGE_ATTRIBUTE_NAME, doGetRange(section), //
|
||||
READABLE_ATTRIBUTE_NAME, isReadable(), //
|
||||
|
@ -110,6 +111,10 @@ public class DbgModelTargetMemoryRegionImpl extends DbgModelTargetObjectImpl
|
|||
), "Initialized");
|
||||
}
|
||||
|
||||
protected String computeDisplay(DbgModuleMemory region) {
|
||||
return region.getType() + " " + getName(); // NB. Name will contain []s
|
||||
}
|
||||
|
||||
protected AddressRange doGetRange(DbgModuleMemory s) {
|
||||
AddressSpace addressSpace = getModel().getAddressSpace("ram");
|
||||
Address min = addressSpace.getAddress(s.getVmaStart());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue