Add structure/enum management and fix variable renaming#110
Open
blinkysc wants to merge 1 commit intoLaurieWired:mainfrom
Open
Add structure/enum management and fix variable renaming#110blinkysc wants to merge 1 commit intoLaurieWired:mainfrom
blinkysc wants to merge 1 commit intoLaurieWired:mainfrom
Conversation
New MCP tools for data type management: - create_struct, add_struct_field, list_structs, get_struct, delete_struct - create_enum, add_enum_value - apply_struct_at_address, list_types Fixed variable renaming to work reliably by committing decompiler local names to database before attempting renames.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New Tools
Structure management:
create_struct- Create new structure data typesadd_struct_field- Add fields to structureslist_structs- List all defined structuresget_struct- Get structure details with all fieldsdelete_struct- Delete a structureEnum management:
create_enum- Create new enum data typesadd_enum_value- Add values to enumsOther:
apply_struct_at_address- Apply a structure type at a memory addresslist_types- List all data types, optionally filtered by categoryVariable Renaming Fix
The
rename_variabletool was unreliable because decompiler-generated variable names (likeuVar1,local_10) weren't in the database until explicitly committed. Fixed by callingHighFunctionDBUtil.commitLocalNamesToDatabase()before attempting renames.