Commit graph

1533 commits

Author SHA1 Message Date
caheckman
b650848848 GP-4688 Tighter checks on NaN expression truncation 2024-06-14 00:56:47 +00:00
dragonmacher
e18c80f20a Test timing fixes 2024-06-13 18:38:06 -04:00
Ryan Kurtz
48660774dc Merge remote-tracking branch 'origin/patch' 2024-06-13 06:24:42 -04:00
ghidra1
734ff7b669 GP-4689 additional revision to decompiler process setup error handling 2024-06-12 17:31:22 -04:00
ghidra1
9e5ab028c7 Merge branch 'GP-4689_ghidra1_DecompilerProcessSetup' into patch 2024-06-12 16:16:21 -04:00
ghidra1
34954d6df9 GP-4689 correct decompiler processes setup thread interrupt issue 2024-06-12 15:55:39 -04:00
Ryan Kurtz
4816e3945f Merge remote-tracking branch 'origin/GP-4684_caheckman_PR-6540_LukeSerne_decomp-fix-subflow-float-less-input-order' 2024-06-12 11:17:21 -04:00
Ryan Kurtz
9e7a5d8b0c Merge remote-tracking branch 'origin/patch' 2024-06-12 11:16:47 -04:00
Ryan Kurtz
001a65357c Merge remote-tracking branch 'origin/GP-4666_DeindirectOutput' into patch 2024-06-12 11:13:52 -04:00
Ryan Kurtz
6ede2b498f Merge remote-tracking branch 'origin/GP-4582_SwitchGotoLoop' into patch
(Closes #6282)
2024-06-12 11:12:16 -04:00
caheckman
464e33cf08 GP-4582 Make sure newBlockMultiGoto preserves any self edge 2024-06-11 19:09:46 +00:00
caheckman
a67e80c286 GP-4672 Set correct INDIRECT flags during SplitFlow 2024-06-11 18:51:46 +00:00
caheckman
ad3210bd1c GP-4666 Fix for deindirect with multiple output pieces 2024-06-11 18:09:47 +00:00
caheckman
5604178194 GP-3307 Stack strings 2024-06-11 17:41:06 +00:00
Ryan Kurtz
adb295a6be Merge remote-tracking branch 'origin/patch' 2024-06-11 10:12:50 -04:00
dragonmacher
2ff3815cd9 Test fixes 2024-06-11 09:54:16 -04:00
ghidra1
43eb848eac Merge remote-tracking branch 'origin/Ghidra_11.1' 2024-06-06 15:50:48 -04:00
ghidra1
3ebc46a2ca GP-0 Improved process error handling for Decompiler and GNU Demangler.
Corrected minor GNU Demangler demangler command and script issues.
2024-06-06 15:11:14 -04:00
dragonmacher
3bf5dcfbb3 GP-4661 - Added the structure member comment to the tooltip 2024-06-04 15:41:00 -04:00
Luke Serné
c79c9606bc Decompiler: Simplify comparisons between INT_OR and zero.
At -O1, gcc combines several values that all need to be compared against zero by
combining them using `INT_OR` and only comparing the combined result against
zero. With this rule, the decompiler is able to break these `INT_OR` chains
apart and simplify the individual links.
2024-05-25 14:10:05 +02:00
Ryan Kurtz
973bbfc9d3 Merge remote-tracking branch 'origin/Ghidra_11.1' 2024-05-24 08:11:23 -04:00
Ryan Kurtz
ff72278bef GP-0: Fixing javadoc errors 2024-05-24 08:05:59 -04:00
ghidragon
5ea8e97805 GP-3696 - cleaning up function compare windows. 2024-05-23 11:46:33 -04:00
ghidra1
75a86e51c9 Merge remote-tracking branch 'origin/GP-0_SeparatorFix' 2024-05-20 15:12:14 -04:00
Luke Serné
318e4af955 Decompiler: Fix float comparison inputs swap in rule subflow_convert
The decompiler rule `subflow_convert` would sometimes swap the inputs
to the P-Code ops `FLOAT_LESS` and `FLOAT_LESSEQUAL` if the float that
was traced happened to be the second input of the operation, because
the transformed operation had its inputs hardcoded: the traced float
would always be the first input. While this also affected `FLOAT_EQUAL`
and `FLOAT_NOTEQUAL`, it does not matter in those cases, because
swapping the inputs for those operations is still logically equivalent.

Fixes #6528.
2024-05-19 23:03:42 +02:00
Ryan Kurtz
0412b81b88 Merge remote-tracking branch 'origin/Ghidra_11.1' 2024-05-16 13:52:48 -04:00
ghidragon
00d2f17714 GP-4601 fixed code compare window to dispose properly 2024-05-15 15:18:55 -04: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
ghidra1
5361b13e6f Merge remote-tracking branch 'origin/GP-4535_emteere_FixStoreOfDefaultDisassemblyContext--SQUASHED' 2024-05-02 20:21:52 -04:00
ghidra1
7edb10ab60 Merge remote-tracking branch 'origin/GP-7_emteere_WIndowsResourceReferenceFix' 2024-05-02 20:10:19 -04:00
ghidra1
5aafab9ce7 Merge remote-tracking branch 'origin/GP-4566_SwitchIndirectSplit' 2024-05-02 20:05:43 -04:00
emteere
6ccf256055 GP-4535 Corrected storage of default context on disassembly errors and switch table targets. Improves disassembly for programs with no stored context as context table will be empty. 2024-05-02 14:23:28 -04:00
caheckman
05818c5c3a GP-4370 Internal Storage 2024-05-02 15:13:32 +00:00
Ryan Kurtz
f1e2c8db04 Merge remote-tracking branch 'origin/GP-4541_UnmappedStack' 2024-05-02 10:10:03 -04: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
caheckman
d7613fc7b6 GP-4566 Adjustment to protectSwitchPath 2024-04-29 23:53:51 +00:00
caheckman
2e0d6952fb GP-4541 Apply nolocalalias to STORE indirects 2024-04-26 23:48:59 +00:00
Ryan Kurtz
732a1901b7 Merge remote-tracking branch 'origin/patch' 2024-04-24 09:11:24 -04:00
dragonmacher
31468526fb Updated an enum to be public so it is usable from a script 2024-04-24 09:00:22 -04:00
ghidra1
bb80f004ea Merge remote-tracking branch 'origin/GP-4505_ghidra1_MutabilitySettings' 2024-04-22 18:08:19 -04:00
caheckman
e279c5b56a Refactor HighSymbol mutability 2024-04-16 00:33:20 +00:00
caheckman
3c3591f6dc GP-4514 Add check preventing multiple unlabeled switch targets 2024-04-15 19:36:38 +00:00
caheckman
4bbbba3e5a GP-4300 Full extended division in optimized division rules 2024-04-10 19:19:08 +00: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
Ryan Kurtz
10a63ab38f Merge remote-tracking branch
'origin/GP-4459_ghidra007_windows_rtti_null_ptr' into patch
(Closes #6348)
2024-04-04 08:20:53 -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