Ghidra is a software reverse engineering (SRE) framework
Merge branch 'GP-2774_ghidraffe_GhidraGo_final'
ghidra132d3fc4c706e
diff --cc Ghidra/RuntimeScripts/Linux/support/GhidraGo/ghidraGoindex 0000000000,ecbe275fac..53989fe65fmode 000000,100755..100755--- a/Ghidra/RuntimeScripts/Linux/support/GhidraGo/ghidraGo+++ b/Ghidra/RuntimeScripts/Linux/support/GhidraGo/ghidraGo@@@ -1,0 -1,24 +1,16 @@@+ #!/bin/bash+ #+ # Command-line script for starting GhidraGo++ # launch mode (fg, bg, debug, debug-suspend, debug-suspend-launcher)+ LAUNCH_MODE=fg++ # Resolve symbolic link if present and get the directory this script lives in.+ # NOTE: "readlink -f" is best but works on Linux only, "readlink" will only work if your PWD+ # contains the link you are calling (which is the best we can do on macOS), and the "echo" is the+ # fallback, which doesn't attempt to do anything with links.+ SCRIPT_FILE="$(readlink -f "$0" 2>/dev/null || readlink "$0" 2>/dev/null || echo "$0")"++SCRIPT_DIR="${SCRIPT_FILE%/*}"+-# in dev mode, SCRIPT_FILE is Ghidra/RuntimeScripts_U/Linux/support/GhidraGo/ghidraGo-# in release mode, SCRIPT_FILE is support/GhidraGo/ghidraGo-# BASE_DIR is the base directory of ext-u.-# Initally assume to be in release mode.-BASE_DIR="${SCRIPT_FILE%/*}/../.."--if [ ! -d "$BASE_DIR/Ghidra" ]; then- BASE_DIR="${BASE_DIR}/../../../../ghidra/Ghidra/RuntimeScripts/Linux"-fi--"${BASE_DIR}"/support/launch.sh $LAUNCH_MODE jdk GhidraGo "" "" ghidra.GhidraGo "$@"++# Launch Filesystem Conversion++"${SCRIPT_DIR}"/../launch.sh $LAUNCH_MODE jdk GhidraGo "" "" ghidra.GhidraGo "$@"diff --cc Ghidra/RuntimeScripts/Windows/support/GhidraGo/ghidraGo.batindex 0000000000,091f8bfb8b..8a7061b997mode 000000,100644..100644--- a/Ghidra/RuntimeScripts/Windows/support/GhidraGo/ghidraGo.bat+++ b/Ghidra/RuntimeScripts/Windows/support/GhidraGo/ghidraGo.bat@@@ -1,0 -1,19 +1,10 @@@+ :: GhidraGo launch++ @echo off+ setlocal+-set SCRIPT_FILE=%~dp0%-:: in dev mode, SCRIPT_FILE is Ghidra/RuntimeScripts_U/Windows/support/GhidraGo/ghidraGo-:: in release mode, SCRIPT_FILE is support/GhidraGo/ghidraGo-:: BASE_DIR is the base directory of ext-u-:: Initially assume to be in release mode.-set BASE_DIR=%SCRIPT_FILE:~0,-1%\..\..--if not exist %BASE_DIR%\Ghidra (- :: set base dir to location of windows base script dir- set BASE_DIR=%BASE_DIR%\..\..\..\..\ghidra\Ghidra\RuntimeScripts\Windows-)--call "%BASE_DIR%\support\launch.bat" fg jdk GhidraGo "" "" ghidra.GhidraGo "%*"++:: Launch mode can be changed to one of the following:++:: fg, debug, debug-suspend++set LAUNCH_MODE=fg+++call "%~dp0..\launch.bat" %LAUNCH_MODE% jdk GhidraGo "" "" ghidra.GhidraGo "%*"