mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-3887: Update Debugger course for Trace RMI.
This commit is contained in:
parent
190f1eaa1e
commit
a93a695e6a
79 changed files with 2235 additions and 1663 deletions
|
@ -499,6 +499,21 @@ public enum PathUtils {
|
|||
return Objects.equals(ancestor, successor.subList(0, ancestor.size()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Assuming the first path is an ancestor of the second, compute the relative path from the
|
||||
* first to the second.
|
||||
*
|
||||
* @param ancestor the ancestor (from)
|
||||
* @param successor the successor (to)
|
||||
* @return the relative path
|
||||
*/
|
||||
public static List<String> relativize(List<String> ancestor, List<String> successor) {
|
||||
if (!isAncestor(ancestor, successor)) {
|
||||
throw new IllegalArgumentException("First must be an ancestor of the second");
|
||||
}
|
||||
return successor.subList(ancestor.size(), successor.size());
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether a given object-valued attribute is a link.
|
||||
*
|
||||
|
@ -538,6 +553,7 @@ public enum PathUtils {
|
|||
* Check whether a given attribute should be displayed.
|
||||
*
|
||||
* @param key the key of the given attribute
|
||||
* @return true if hidden
|
||||
*/
|
||||
public static boolean isHidden(String key) {
|
||||
return key.startsWith(TargetObject.PREFIX_INVISIBLE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue