Emerson Pinter
cab8ed6068
feat: cache vfunctions list
...
The vfunctions are collected and compared in two loops against all the
recoveredClasses, this takes time if the binary have many classes. This
commit makes the vfunctions list and the vftable address to be stored
in a map, making the vfunctions list and create happen only once.
2024-08-19 23:13:23 -03:00
ghidra007
12fcbe63bc
GP-4812 update vfunctions to use void* this instead of formal signature
2024-08-02 20:39:03 +00:00
ghidra007
f657b11c1d
GP-4748 Updated RttiUtil's find end of vftable to be more accurate.
2024-07-19 21:48:15 +00:00
Ryan Kurtz
2760eebc92
Merge remote-tracking branch 'origin/patch'
2024-07-17 13:27:11 -04:00
ghidra007
c2bf8d0464
GP-4763 Added check that ClassHierarchyDescriptor symbols are not in Global namespace. If they are skip processing it and the associated class.
2024-07-17 16:44:40 +00:00
ghidra007
02aba11104
GP-4708 updated createStructure to fix logic error.
2024-06-24 23:11:26 +00:00
caheckman
184c657cfd
GP-4708 Adjustments to RecoverClassesFromRTTIScript and
...
FillOutStructureHelper
2024-06-24 23:11:26 +00:00
ghidra007
78425f441d
GP-4586 corrected and simplified method to generate class description to
...
fix order of parents.
2024-05-08 22:39:41 +00:00
emteere
09bd2bebe0
GP-7 Added handling of MULTI_EQUAL pcode op while finding constant
...
resource ids.
2024-04-30 21:53:25 -04:00
Ryan Kurtz
fef0b92cad
Merge remote-tracking branch 'origin/GP-4396_ghidra007_RTTI_gcc_handle_copy_relocations_nonMangledClassNames'
2024-04-05 08:55:56 -04:00
ghidra007
b04d5335ca
GP-4376 Updated gcc class recovery to allow for special typeinfos that
...
are not in program memory or external block. Also updated to add a check
for unhandled relocations. Also updated to allow for non-mangled
typeinfo-name strings.
2024-04-04 16:46:02 +00:00
Ryan Kurtz
4360104a9e
Merge remote-tracking branch 'origin/patch'
...
Conflicts:
Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RTTIWindowsClassRecoverer.java
2024-04-04 08:29:23 -04:00
ghidra007
cd780a7b63
GP-4459 put back parentList check
2024-04-03 18:25:23 +00:00
Ryan Kurtz
c89d72bad5
Merge remote-tracking branch 'origin/GP-4408_ghidra1_FillOutStructureCmdCleanup--SQUASHED'
2024-04-03 10:12:19 -04:00
ghidra1
624a3c4e9e
GP-4408 Refactor of FillOutStructureCmd. Added FillOutStructureHelper and additional DecompilerUtils methods.
2024-04-03 09:53:53 -04:00
ghidra007
f0f2ffc97e
GP-4459 fixed review notes
2024-04-01 20:14:57 +00:00
Ryan Kurtz
740f8251ae
GP-4459 removed unnecessary restrictive check which was causing a later
...
null exception. Also, added null check in later place.
2024-03-26 18:31:21 +00:00
ghidra1
07389e697b
GP-4434 corrected issues related to return/param commit action within decompiler
2024-03-20 17:41:22 -04:00
dev747368
f17ebb78ab
GP-2798 initial DWARF5 support
...
Adds support for simple DWARF5 debug info. Split .dwo not supported.
Uses bookmarks to tag problematic issues instead of log messages during import.
2024-03-11 16:26:06 +00:00
ghidra007
fd8fcebe09
GP-4371 Added check to RecoverClassesFromRTTIScript to not run when there are unhandled relocations.
2024-03-04 18:23:46 +00:00
Ryan Kurtz
6cd4fd80f7
Merge remote-tracking branch 'origin/GP-3868_ghidra007_RTTIscript_FixExtFuncAddressLabelError' into Ghidra_10.4
2023-09-22 14:04:58 -04:00
ghidra007
81ad8d3043
GP-3868 rtti script - added code to skip external function editing
2023-09-22 17:52:35 +00:00
ghidra007
cb410f732c
GP-3861 added exceptions if missing expected windows rtti info
2023-09-22 16:35:41 +00:00
ghidra007
4076cb9ec9
GP-3777 added code to RTTI script to update any class functions not already using new class struct to use it.
2023-08-30 16:22:54 +00:00
ghidra007
5709ca80d3
GP-3464 Improved gcc rtti script class struct recovery to better use dwarf info, split out parent struct in class struct, fix align issue keeping data from being created correctly, better id and name vftables in multi-inheritance case, clean up of exceptions, start of improved modeling vftables.
2023-08-29 23:07:18 +00:00
Ryan Kurtz
5184648bf8
Merge remote-tracking branch
...
'origin/GP-3752_James_graph_ast_script_and_fixup' (Closes #5657 )
2023-08-23 13:05:55 -04:00
ghidra007
45eb6eb187
GP-3747 PR-5644 reworked updateFunctionDefinition part of PR.
2023-08-21 19:47:55 +00:00
James
3a43696001
GP-3752 added callfixup in x86win.cspec and updated GraphASTScript
2023-08-17 20:56:53 +00:00
saruman9
152b6349b0
fix(rtti): fix some problems in ApplyClassFunctionSignatureUpdatesScript.java
...
Don't create List from null, check the fact that the Symbol of `vftable` is not null, change the signature of a function in any case.
2023-08-07 13:22:44 +04:00
ghidra007
84705bb8fb
GP-3674 updated RTTI script to work in headless mode.
2023-07-31 18:55:59 +00:00
ghidragon
04fa097f58
GP-3667 Cleaning up weird behavior of GraphDisplayOptions to register options when given a tool
2023-07-25 12:26:07 -04:00
ghidra1
f8ec071906
Merge remote-tracking branch 'origin/patch'
2023-07-10 19:54:55 -04:00
emteere
b02101298f
GP-5 Fixed WindowsResource Analyzer wasting time decompiling functions
...
that have previously failed to decompile due to timeout
2023-07-10 20:40:57 +00:00
Ryan Kurtz
f3ebcf679b
Merge remote-tracking branch 'origin/patch'
2023-06-09 11:19:29 -04:00
Ryan Kurtz
6b2bd61588
Merge remote-tracking branch 'origin/GP-3463_ghidra007_rtti_script_improve_find_internal_vtables--SQUASHED' into patch
2023-06-09 11:14:46 -04:00
ghidra007
0f66077ce2
GP-3463 RecoverClassesFromRTTIScript - improved finding of special vtables to account for ones in memory blocks that do not contain real bytes.
2023-06-09 15:09:00 +00:00
Ryan Kurtz
cc48928827
Merge remote-tracking branch 'origin/patch'
2023-06-07 05:50:55 -04:00
ghidra007
ec8d9f018b
GP-3841 rtti script - fixed increment issue caused when fixing
...
incrementer
2023-06-06 22:34:57 +00:00
Ryan Kurtz
00d56d5afd
Merge remote-tracking branch 'origin/patch'
2023-06-05 13:50:11 -04:00
ghidra007
4c7be8be0d
GP-3481 added missing incrementer causing infinite loop in some cases
2023-06-05 17:15:47 +00:00
Ryan Kurtz
d91a60f201
Merge remote-tracking branch 'origin/patch'
2023-06-01 06:17:13 -04:00
Ryan Kurtz
ea5b5e4c28
Merge remote-tracking branch 'origin/GP-3481_ghidra007_' into patch
2023-06-01 06:10:12 -04:00
ghidra007
ecade19183
GP-3467 rtti script fixed issue clearing/creating mangled typeinfo-name mangled string of correct length. Was breaking when more than one existing dt in string range because was only clearing first one.
2023-05-31 18:01:55 +00:00
ghidra007
81ba94a3b8
GP-3481 Fixed incorrect checks of getData and getDataContaining in rtti script and replaced api versions with non-api versions and updated checks to work with new way.
2023-05-31 15:54:12 +00:00
Ryan Kurtz
3e9419d4d7
Merge remote-tracking branch
...
'origin/GP-3503_emteere_PR-5242_befoulad_show-constuse-multeq'
(Closes #5242 )
2023-05-26 16:41:31 -04:00
emteere
b97b3ec5d5
GP-3503 Minor cleanup
2023-05-26 19:37:58 +00:00
ghidra007
02b4a86df0
GP-0 removed debug lines
2023-05-09 19:34:55 +00:00
ghidra1
0b884e5bd8
Merge remote-tracking branch 'origin/GP-3406_ghidra007_add_mingw_not_fix_check_to_RTTI_script--SQUASHED' into Ghidra_10.3
2023-05-09 13:42:54 -04:00
ghidra007
8aa5ac7c47
GP-3406 RTTI script - added check that mingw analyzer fixed relocations correctly.
2023-05-09 13:41:26 -04:00
ghidra007
8580baddc3
GP-3417 fixed case where si vtable was not getting created bc too many refs. Added secondary check. Added check for same num special vtable and typeinfos.
2023-05-08 21:11:53 +00:00