-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
53 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
src/patches/stable/0003-Add-missing-index-check-to-prevent-errors-in-Windows.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/patches/stable/0006-decompiler-Fix-strict-weak-ordering-TypePartialEnum.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 5d6886b914c266f0a97941666fda75e0f7311d35 Mon Sep 17 00:00:00 2001 | ||
From: Eric Kilmer <eric.d.kilmer@gmail.com> | ||
Date: Sat, 8 Feb 2025 17:59:57 -0500 | ||
Subject: [PATCH 6/6] decompiler: Fix strict weak ordering TypePartialEnum | ||
|
||
This fixes Windows Debug error encountered in testing where it was | ||
complaining about lack of strict weak ordering. | ||
--- | ||
Ghidra/Features/Decompiler/src/decompile/cpp/type.cc | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/type.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/type.cc | ||
index f25b019a4f..2f1337a740 100644 | ||
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/type.cc | ||
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/type.cc | ||
@@ -2300,6 +2300,7 @@ int4 TypePartialEnum::compareDependency(const Datatype &op) const | ||
|
||
{ | ||
if (submeta != op.getSubMeta()) return (submeta < op.getSubMeta()) ? -1 : 1; | ||
+ if (parent == &op) return 1; // op is our TypeEnum | ||
TypePartialEnum *tp = (TypePartialEnum *) &op; // Both must be partial | ||
if (parent != tp->parent) return (parent < tp->parent) ? -1 : 1; // Compare absolute pointers | ||
if (offset != tp->offset) return (offset < tp->offset) ? -1 : 1; | ||
-- | ||
2.48.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters