Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge remote-tracking branch 'origin/patch'

Ryan Kurtz91f94b8155f1
diff --cc Ghidra/Debug/Framework-Debugging/build.gradle
index 2611e9e4a8,66b05ea246..df7c0d8b04
--- a/Ghidra/Debug/Framework-Debugging/build.gradle
+++ b/Ghidra/Debug/Framework-Debugging/build.gradle
@@@ -34,75 -34,86 +34,82 @@@ dependencies
// Ensure the below native test binaries don't get built for a distribution
ext.nativesTestOnly = true
-task testSpecimenWin64 {
- dependsOn 'expCreateProcessWin64Executable'
- dependsOn 'expCreateThreadExitWin64Executable'
- //dependsOn 'expCreateThreadSpinWin64Executable'
- dependsOn 'expPrintWin64Executable'
- //dependsOn 'expSpinWin64Executable'
- dependsOn 'expRegistersWin64Executable'
- dependsOn 'expStackWin64Executable'
+task testSpecimenWin_x86_64 {
+ dependsOn 'expCreateProcessWin_x86_64Executable'
+ dependsOn 'expCreateThreadExitWin_x86_64Executable'
+ //dependsOn 'expCreateThreadSpinWin_x86_64Executable'
+ dependsOn 'expPrintWin_x86_64Executable'
+ //dependsOn 'expSpinWin_x86_64Executable'
+ dependsOn 'expRegistersWin_x86_64Executable'
+ dependsOn 'expStackWin_x86_64Executable'
}
-task testSpecimenLinux64 {
- dependsOn 'expCloneExecExecutable'//Linux64Executable'
- dependsOn 'expCloneExitExecutable'//Linux64Executable'
- //dependsOn 'expCloneSpinExecutable'//Linux64Executable'
- dependsOn 'expForkExecutable'//Linux64Executable'
- dependsOn 'expPrintLinux64Executable'
- //dependsOn 'expTypesExecutable'//Linux64Executable'
- dependsOn 'expRegistersLinux64Executable'
- dependsOn 'expSpinLinux64Executable'
- dependsOn 'expStackLinux64Executable'
+task testSpecimenLinux_x86_64 {
+ dependsOn 'expCloneExecExecutable'//Linux_x86_64Executable'
+ dependsOn 'expCloneExitExecutable'//Linux_x86_64Executable'
+ //dependsOn 'expCloneSpinExecutable'//Linux_x86_64Executable'
+ dependsOn 'expForkExecutable'//Linux_x86_64Executable'
+ dependsOn 'expPrintLinux_x86_64Executable'
+ dependsOn 'expSpinLinux_x86_64Executable'
+ //dependsOn 'expTypesExecutable'//Linux_x86_64Executable'
+ dependsOn 'expRegistersLinux_x86_64Executable'
+ dependsOn 'expStackLinux_x86_64Executable'
+
+ doLast {
+ exec {
- workingDir "build/os/linux64"
++ workingDir "build/os/linux_x86_64"
+ commandLine "strip", "-o", "expSpin.stripped", "expSpin"
+ }
+ }
}
-model {
- platforms {
- /*linux32 {
- architecture "x86"
- operatingSystem "linux"
- }*/
- }
+// TODO: testSpecimenMac_x86_64 (Intel)
+// will likely need to codesign them to grant debugee-entitlement
+model {
components {
expCreateProcess(NativeExecutableSpec) {
- targetPlatform "win64"
- targetPlatform "win32" // TODO: Test on these
+ targetPlatform "win_x86_64"
+ targetPlatform "win_x86_32" // TODO: Test on these
}
expCreateThreadExit(NativeExecutableSpec) {
- targetPlatform "win64"
- targetPlatform "win32" // TODO: Test on these
+ targetPlatform "win_x86_64"
+ targetPlatform "win_x86_32" // TODO: Test on these
}
expCreateThreadSpin(NativeExecutableSpec) {
- targetPlatform "win64"
- targetPlatform "win32" // TODO: Test on these
+ targetPlatform "win_x86_64"
+ targetPlatform "win_x86_32" // TODO: Test on these
}
expCloneExec(NativeExecutableSpec) {
- targetPlatform "linux64"
- //targetPlatform "linux32" // TODO: Test on these
+ targetPlatform "linux_x86_64"
+ //targetPlatform "linux_x86_32" // TODO: Test on these
}
expCloneExit(NativeExecutableSpec) {
- targetPlatform "linux64"
- //targetPlatform "linux32" // TODO: Test on these
+ targetPlatform "linux_x86_64"
+ //targetPlatform "linux_x86_32" // TODO: Test on these
}
expCloneSpin(NativeExecutableSpec) {
- targetPlatform "linux64"
- //targetPlatform "linux32" // TODO: Test on these
+ targetPlatform "linux_x86_64"
+ //targetPlatform "linux_x86_32" // TODO: Test on these
}
expFork(NativeExecutableSpec) {
- targetPlatform "linux64"
- //targetPlatform "linux32" // TODO: Test on these
+ targetPlatform "linux_x86_64"
+ //targetPlatform "linux_x86_32" // TODO: Test on these
}
expPrint(NativeExecutableSpec) {
- targetPlatform "linux64"
- //targetPlatform "linux32" // TODO: Test on these
- targetPlatform "win64"
- targetPlatform "win32" // TODO: Test on these
+ targetPlatform "linux_x86_64"
+ //targetPlatform "linux_x86_32" // TODO: Test on these
+ targetPlatform "win_x86_64"
+ targetPlatform "win_x86_32" // TODO: Test on these
}
expSpin(NativeExecutableSpec) {
- targetPlatform "linux64"
- targetPlatform "win64"
- targetPlatform "win32" // TODO: Test on these
+ targetPlatform "linux_x86_64"
+ targetPlatform "win_x86_64"
+ targetPlatform "win_x86_32" // TODO: Test on these
}
expTypes(NativeExecutableSpec) {
- targetPlatform "linux64"
- //targetPlatform "linux32" // TODO: Test on these
+ targetPlatform "linux_x86_64"
+ //targetPlatform "linux_x86_32" // TODO: Test on these
binaries {
withType(NativeExecutableBinarySpec) {
if (toolChain in Gcc) {