有没有办法为给定的局部变量获取给定函数中的所有 PcodeOps?到目前为止,我可以找到给定函数和名称的 HighSymbol,但是我想获取该变量的所有用途?
DecompileResults res = decomplib.decompileFunction(f, 200, monitor);
if (res.decompileCompleted())
{
HighFunction highFunc = res.getHighFunction();
LocalSymbolMap localMap = highFunc.getLocalSymbolMap();
Iterator<HighSymbol> localSymbols = localMap.getSymbols();
HighSymbol localSymbol = null;
while (localSymbols.hasNext())
{
HighSymbol current = localSymbols.next();
if (current.getName().equals(theName)) {
localSymbol = current;
break;
}
}
}