Commit graph

729 commits

Author SHA1 Message Date
Ryan Kurtz
34e6bd775c Merge remote-tracking branch
'origin/GP-1533-dragonmacher-decompiler-highlights-exception' (Closes
#3664)
2021-11-29 12:09:52 -05:00
Ryan Kurtz
d6841fbe0f Merge remote-tracking branch 'origin/Ghidra_10.1' 2021-11-29 12:00:27 -05:00
ghidra1
b2e4e25147 Merge remote-tracking branch 'origin/GP-1499_ghidra007_ClassRecovery_code_cleanup--SQUASHED' into Ghidra_10.1 2021-11-29 10:32:50 -05:00
ghidra007
80538d8c49 GP-1499 Recover classes script various improvements. Updated checks for whether program has DWARF and whether DWARF has been applied so it works for old and new cases.
Improved error handling. Updated deprecated graph methods which were no longer using defined colors. Various code cleanup.
2021-11-25 19:02:53 +00:00
dragonmacher
28d973e5f2 GP-1533 - Decompiler - fixed stack trace related to removing secondary
highlights; fixed secondary highlights being applied to multiple
functions; fixed rename of functions not getting re-highlighted
2021-11-24 15:28:41 -05:00
Ryan Kurtz
eb312cb7ec Merge remote-tracking branch 'origin/Ghidra_10.1' 2021-11-19 07:19:06 -05:00
ghidra1
db393faca4 Merge remote-tracking branch 'origin/GP-1498_FunctionDefinitionMarshaling' into Ghidra_10.1 2021-11-18 15:09:23 -05:00
caheckman
e4451fcd49 Refactor TypeStruct and TypeCode restoration 2021-11-17 15:56:56 -05:00
Ryan Kurtz
8d8d32262d Merge remote-tracking branch
'origin/GP-1435-dragonmacher-decompiler-highlighter-service--SQUASHED'
(Closes #2313)
2021-11-17 13:00:26 -05:00
ghidra1
835a2492a2 GP-0 allow decompiler to build for x86 with older compiler (e.g., g++
4.8.5)
2021-11-16 17:59:49 -05:00
ghidra1
331357f203 Merge remote-tracking branch
'origin/GP-1495_ghidra007_Add_check_for_error_decompiling_functions--SQUASHED'
into Ghidra_10.1
2021-11-16 11:58:18 -05:00
ghidra007
e2257ce96a GP-1495 added check for error decompiling function and put bad bookmarks if it happens. 2021-11-16 11:48:08 -05:00
caheckman
0ff0036121 Recalculate pointer submeta after structure definition is complete 2021-11-15 21:19:58 -05:00
dragonmacher
02ef6109e2 GP-1435 - Decompiler Highlight Service - created new highlighter service 2021-11-12 16:14:43 -05:00
ghidra1
f22e05af3f Merge remote-tracking branch
'origin/GP-1315_add_option_to_remove_replaced_class_structures--SQUASHED'
into Ghidra_10.1 (Closes #3443)
2021-11-10 16:40:22 -05:00
ghidra1
c8b143e551 Merge remote-tracking branch 'origin/GP-1464_ghidra007_ReplacePdbClassDataTypesInClassMethods--SQUASHED' into Ghidra_10.1 2021-11-10 16:34:03 -05:00
ghidra007
8610e23ae0 GP-1315 Added options to allow removal of replaced class structure data types when replaced with ones created by RecoverClassesFromRTTIScript. 2021-11-10 20:01:05 +00:00
ghidra007
0766c30048 GP-1464 RecoverClassesFromRTTIScript now consistently applies its class structures in programs that have PDB information applied. Also, an option was added so users can decide whether to replace existing class data in thiscall functions regardless of whether they originated as PDB or not. 2021-11-10 19:59:21 +00:00
ghidra1
040a431bc5 Merge remote-tracking branch 'origin/GP-1430-dragonmacher-symbol-table-set-namespace--SQUASHED' 2021-11-09 20:15:51 -05:00
dragonmacher
2b83cdbb86 GP-1430 - Updated the Symbol Table to support using '::' to set namespace 2021-11-09 17:11:00 -05:00
Ryan Kurtz
6792beee6a Merge remote-tracking branch 'origin/GP-1458_ghidra007_label_multi_parent_class_vftables--SQUASHED' 2021-11-09 10:24:58 -05:00
Ryan Kurtz
463f73caf8 Merge remote-tracking branch
'origin/GP-1311_ghidra007_remove_this_from_func_sigs_make_better_purevirt_sigs--SQUASHED'

(Closes #3417)

Conflicts:
	Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassUtils.java
2021-11-09 10:20:52 -05:00
ghidra007
a4349ba443 GP-1311 In RecoverClassesFromRTTIScript support, removed the 'this *' from vfunction definitions to enable generic class assignment and allowed purecall vfunction pointer to be replaced with pointers to correct class vfunction definition. 2021-11-09 15:02:03 +00:00
ghidra007
eb10067c0a GP-1458 Updated RecoverClassesFromRTTI to label multi parent vftables with parent name in Windows programs. 2021-11-09 14:58:34 +00:00
Ryan Kurtz
c9a3e3db27 Merge remote-tracking branch 'origin/GP-1408_ghidra007_splitVftablePtrsAndDataInChildClassStructs--SQUASHED' 2021-11-09 09:58:31 -05:00
ghidra007
a8e39d58c4 GP-1408 Changed inheriting class structures to contain individual base class structure components instead of whole structures. This allows correct class vftable and vbtable pointers to be used instead of base class ones. This makes structures messier but makes decompiler usage correct. Also updated methods that update virtual functions. 2021-11-09 14:56:19 +00:00
caheckman
cce187a4c5 Decompiler support for offset/relative pointers 2021-11-08 11:51:03 -05:00
dragonmacher
04c0f0ef93 Fixed stack trace when clicking a location mapped to an
UndefinedFunction
2021-10-29 11:27:18 -04:00
Ryan Kurtz
6df7fa868a Merge remote-tracking branch 'origin/GP-1-dragonmacher-remove-deprecated-methods-squashed' 2021-10-27 13:41:48 -04:00
dragonmacher
0e02978472 GP-1429 - fixed bug that caused field to get renamed when not choosing a
new type

Closes #3483
2021-10-25 16:49:51 -04:00
dragonmacher
d05a57ae1a Removal of old deprecated methods 2021-10-25 15:12:25 -04:00
Ryan Kurtz
6f969ddf73 Merge remote-tracking branch 'origin/GP-1404_RiscvCspecParsing' 2021-10-19 11:36:41 -04:00
Ryan Kurtz
618f52c0ed Merge remote-tracking branch 'origin/GP-1407_TypePropagation' 2021-10-19 07:50:37 -04:00
Ryan Kurtz
785d86402f Merge remote-tracking branch
'origin/GP-1401_caheckman_PR-2609_astrelsky_SimplifiedTypes' (Closes
#2609)
2021-10-19 07:46:44 -04:00
Ryan Kurtz
7c125004fb GP-1383: Fixing compilation error 2021-10-19 07:28:14 -04:00
caheckman
5ec6cfcd81 Additional adjustments 2021-10-15 20:05:15 -04:00
caheckman
60dbaa0559 New data-type ordering implementation 2021-10-15 18:17:17 -04:00
dragonmacher
815c6f8bc0 GP-1383 - Added the ability to remove a non-default symbol by setting the Edit Label dialog text to the empty string; added an action to the decompiler to remove non-default labels.
Closes #3285
2021-10-15 17:14:42 -04:00
caheckman
a00de6cbac Breaking out ParamListRegisterOut 2021-10-15 14:55:54 -04:00
Andrew Strelsky
f1a8123547
Simplified types.h 2021-10-13 18:15:49 -04:00
caheckman
41d0be6b95 Adjustments to get rid of some compiler warnings 2021-10-08 16:51:12 -04:00
Ryan Kurtz
f7c31cc8fc Merge remote-tracking branch 'origin/GP-1073_ghidravore_checking_uses_of_getSymbols_address--SQUASHED' 2021-10-07 08:27:14 -04:00
Ryan Kurtz
33bafd6a8c Merge remote-tracking branch 'origin/GP-1089_DecompilerDocEdits' 2021-10-07 08:23:10 -04:00
Ryan Kurtz
1566bcb7e6 Merge remote-tracking branch 'origin/patch' 2021-10-07 08:16:36 -04:00
caheckman
f0b05dda2c Edits to Decompiler help 2021-10-06 19:05:23 -04:00
caheckman
a6afce67e7 In case of partial overlap always add Varnode to disjoint 2021-10-06 18:09:26 -04:00
ghidravore
a8da2b761a GP-1073 updating uses of getSymbols(address) to be more efficient where possible 2021-10-06 16:59:58 -04:00
caheckman
c64e7ccc07 Prevent SpecExtensionTest from tripping pentry test 2021-10-04 13:40:58 -04:00
ghidra1
1091dec18c Merge remote-tracking branch
'origin/GP-1317_caheckman_PR-2040_astrelsky_IterableTokens' (Closes
#2040)
2021-10-01 11:48:31 -04:00
caheckman
75b7d5fe14 Support for per function unaffected/killedbycall/likelytrash 2021-09-30 15:09:09 -04:00