Skip to content

Commit 793527b

Browse files
committed
feat: match features updated
1 parent ff525c7 commit 793527b

19 files changed

Lines changed: 1413 additions & 931 deletions

reai_toolkit/features/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
from .match_current_function import MatchCurrentFunctionFeature
77
from .view_function_in_portal import ViewFunctionInPortalFeature
88
from .ai_decompiler import AIDecompilerFeature
9-
from .match_functions_old import MatchFunctionsFeatureOld
109
__all__ = [
1110
'ConfigurationFeature',
1211
'UploadFeature',
1312
'AutoUnstripFeature',
1413
'ChooseSourceFeature',
1514
'MatchFunctionsFeature',
1615
'MatchCurrentFunctionFeature',
17-
'MatchFunctionsFeatureOld',
1816
'ViewFunctionInPortalFeature',
1917
'AIDecompilerFeature'
2018
]

reai_toolkit/features/ai_decompiler/ai_decompiler_dialog.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,19 @@ def toggle_address_tracking(self, state):
4242
else:
4343
log_info(f"RevEng.AI | Stopping address tracking")
4444
self.ai_decompiler.stop_address_tracking()
45+
46+
def clear_tabs(self):
47+
for i in range(self.tabs.count()):
48+
self.close_tab(i)
4549

4650
def pre_tab_setup(self, bv, func):
4751
try:
4852
progress_dialog = create_progress_dialog(self, "RevEng.AI", "Setting up AI Decompiler...")
4953
progress_dialog.show()
5054
QCoreApplication.processEvents()
5155

56+
self.clear_tabs()
57+
5258
function = get_function_by_addr(bv, func)
5359
tab_name = str(f"0x{function.start:x}")
5460
log_info(f"RevEng.AI | Given address 0x{func:x} is function: {function.name} at 0x{function.start:x}")

reai_toolkit/features/match_current_function/match_current_function.py

Lines changed: 181 additions & 128 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)