20 lines
637 B
Python
20 lines
637 B
Python
|
|
import sys
|
||
|
|
|
||
|
|
sys.path.insert(0, r"k:\mcp\GhidraMCP")
|
||
|
|
import bridge_mcp_ghidra as bridge
|
||
|
|
|
||
|
|
|
||
|
|
print(
|
||
|
|
bridge.set_function_class(
|
||
|
|
function_address="1250:0910",
|
||
|
|
class_path="Remorse::CacheBackendObject",
|
||
|
|
method_name="SetEntryNameAndTag",
|
||
|
|
)
|
||
|
|
)
|
||
|
|
print(
|
||
|
|
bridge.set_decompiler_comment(
|
||
|
|
"1250:0910",
|
||
|
|
"Indexed CacheBackendObject writer. Resolves the logical entry id through the +0x18 remap table, ensures the +0x10 entry buffer exists and is large enough, stores a 4-byte tag/header, and copies the caller-supplied name string at offset +4.",
|
||
|
|
)
|
||
|
|
)
|
||
|
|
print(bridge.get_function_by_address("1250:0910"))
|