more work done
This commit is contained in:
parent
5cc5612f4e
commit
d323bb28fc
68 changed files with 714 additions and 19 deletions
38
scripts/_tmp_apply_cache_backend_methods.py
Normal file
38
scripts/_tmp_apply_cache_backend_methods.py
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
import sys
|
||||
|
||||
sys.path.insert(0, r"k:\mcp\GhidraMCP")
|
||||
import bridge_mcp_ghidra as bridge
|
||||
|
||||
|
||||
updates = [
|
||||
{
|
||||
"address": "1250:026c",
|
||||
"name": "LoadEntryTableFromManifest",
|
||||
"comment": (
|
||||
"Constructor-selected cache-backend branch. Fetches a manifest-style buffer through the "
|
||||
"object callback table, allocates the +0x10/+0x18 entry tables, and copies parsed entry "
|
||||
"records into backend-owned storage."
|
||||
),
|
||||
},
|
||||
{
|
||||
"address": "1250:0749",
|
||||
"name": "InitFixedEntryTable",
|
||||
"comment": (
|
||||
"Constructor-selected cache-backend fallback branch. Uses the current entry count and a "
|
||||
"caller-supplied fixed record size to allocate default entry records and seed the +0x10/+0x18 tables."
|
||||
),
|
||||
},
|
||||
]
|
||||
|
||||
for update in updates:
|
||||
print(f"=== {update['address']} -> {update['name']} ===")
|
||||
print(
|
||||
bridge.set_function_class(
|
||||
function_address=update["address"],
|
||||
class_path="Remorse::CacheBackendObject",
|
||||
method_name=update["name"],
|
||||
)
|
||||
)
|
||||
print(bridge.set_decompiler_comment(update["address"], update["comment"]))
|
||||
print(bridge.get_function_by_address(update["address"]))
|
||||
print()
|
||||
Loading…
Add table
Add a link
Reference in a new issue