Commit graph

1573 commits

Author SHA1 Message Date
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
ghidra007
f0f2ffc97e GP-4459 fixed review notes 2024-04-01 20:14:57 +00:00
Ryan Kurtz
42c17a20f8 Merge branch 'GP-0_ryanmkurtz_PR-5262_mehmooda_emulate' (Closes #5262,
Closes #6290, Closes #6292, Closes #5917)
2024-04-01 14:33:20 -04:00
Ryan Kurtz
1c0fc88c45 Merge branch 'GP-0_ryanmkurtz_PR-6276_ekilmer_fix-sleighexample' 2024-04-01 14:26:12 -04:00
Ryan Kurtz
84548843df Merge branch 'GP-0_ryanmkurtz_PR-6372_ekilmer_cpp-open-binary-files' 2024-04-01 14:19:06 -04:00
Ryan Kurtz
affdba0901 Merge branch 'GP-0_ryanmkurtz_PR-5382_ekilmer_fix-asan-initialize-order-fiasco' 2024-04-01 14:11:52 -04:00
Eric Kilmer
e18b424b02
decompiler-cpp: Open sla files as 'binary'
Compressed files need to be opened as binaries when reading. Fixes
opening sla files on Windows.
2024-04-01 12:28:28 -04:00
Ryan Kurtz
5a752fba74 Merge remote-tracking branch 'origin/GP-4466_ghidragon_focus_issue--SQUASHED' 2024-04-01 11:28:42 -04:00
Ryan Kurtz
f5d956d5e6 Merge remote-tracking branch 'origin/GP-4031_X86SystemVABI' 2024-04-01 11:22:00 -04:00
Ryan Kurtz
ea547fad95 Merge remote-tracking branch 'origin/GP-4394_ArrayIndexFormatting'
(Closes #6019)
2024-04-01 11:20:25 -04:00
Ryan Kurtz
6b4f9b71b5 Merge remote-tracking branch 'origin/patch' 2024-04-01 11:18:56 -04:00