mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-619: dbgeng reports full image path, when possible.
This commit is contained in:
parent
01bd8b9ef0
commit
86caedef05
8 changed files with 59 additions and 12 deletions
|
@ -73,6 +73,7 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter {
|
|||
implements EnumeratedTableColumn<ModuleTableColumns, ModuleRow> {
|
||||
BASE("Base Address", Address.class, ModuleRow::getBase),
|
||||
MAX("Max Address", Address.class, ModuleRow::getMaxAddress),
|
||||
SHORT_NAME("Name", String.class, ModuleRow::getShortName),
|
||||
NAME("Module Name", String.class, ModuleRow::getName, ModuleRow::setName),
|
||||
LIFESPAN("Lifespan", Range.class, ModuleRow::getLifespan),
|
||||
LENGTH("Length", Long.class, ModuleRow::getLength);
|
||||
|
|
|
@ -39,6 +39,19 @@ public class ModuleRow {
|
|||
}
|
||||
}
|
||||
|
||||
public String getShortName() {
|
||||
String name = module.getName();
|
||||
int sep = name.lastIndexOf('\\');
|
||||
if (sep > 0 && sep < name.length()) {
|
||||
name = name.substring(sep + 1);
|
||||
}
|
||||
sep = name.lastIndexOf('/');
|
||||
if (sep > 0 && sep < name.length()) {
|
||||
name = name.substring(sep + 1);
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return module.getName();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue