mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-2555: Refactor StackProvider for object-mode trace.
This commit is contained in:
parent
284fd2dc03
commit
0d7cb0dd50
22 changed files with 1911 additions and 882 deletions
|
@ -696,6 +696,13 @@ public interface TargetObjectSchema {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Search for a suitable object with this schema at the given path
|
||||
*
|
||||
* @param type the type of object sought
|
||||
* @param path the path of a seed object
|
||||
* @return the expected path of the suitable object, or null
|
||||
*/
|
||||
default List<String> searchForSuitable(Class<? extends TargetObject> type, List<String> path) {
|
||||
for (; path != null; path = PathUtils.parent(path)) {
|
||||
TargetObjectSchema schema = getSuccessorSchema(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue