You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importghidra_bridgewithghidra_bridge.GhidraBridge(namespace=globals()) asbridge:
symbol_type=bridge.remote_import('ghidra.program.model.symbol.SymbolType')
regex=re.compile(r'^PTR_(?:FUN|DAT|LOOP)_\d+$')
symbols=currentProgram.getSymbolTable().getAllSymbols(True)
symbols=bridge.remote_eval("next((sym for sym in symbols if sym.getSymbolType() == SymbolType.LABEL and r.match(sym.getName())), False)", symbols=symbols, SymbolType=symbol_type, r=regex)
Following exception occurs when tried to run it:
jfx_bridge.bridge.BridgeException: ("global name 'SymbolType' is not defined", <_bridged_exceptions.NameError('NameError("global name 'SymbolType' is not defined",)', type=exceptions.NameError, handle=6a1e7a2e-374e-4a81-8303-f6c5deac146d)>)
# if changed SymbolType to qualified ghidra.program.model.symbol.SymbolType in remote_eval()jfx_bridge.bridge.BridgeException: ("global name 'r' is not defined", <_bridged_exceptions.NameError('NameError("global name 'r' is not defined",)', type=exceptions.NameError, handle=a55f35e3-47a1-4071-92f9-26b04a055a7f)>)
How to properly send arguments to evals, also is there a way to put multiple lines in remote_eval? Thanks!
The text was updated successfully, but these errors were encountered:
This does not run as expected:
Following exception occurs when tried to run it:
How to properly send arguments to evals, also is there a way to put multiple lines in
remote_eval
? Thanks!The text was updated successfully, but these errors were encountered: