more work done
This commit is contained in:
parent
5cc5612f4e
commit
d323bb28fc
68 changed files with 714 additions and 19 deletions
20
scripts/_tmp_apply_cache_backend_setter.py
Normal file
20
scripts/_tmp_apply_cache_backend_setter.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue