diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/ssh-dbgeng-attach.ps1 b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/ssh-dbgeng-attach.ps1 index a4ad65fa9b..966ed0ab2f 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/ssh-dbgeng-attach.ps1 +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/ssh-dbgeng-attach.ps1 @@ -54,6 +54,7 @@ function Compute-Python-Args { return $arglist } +$Env:OPT_OS_WINDOWS = $true $tmpfile = "local-dbgeng-attach.py" $arglist = Compute-Python-Args -TempFile $tmpfile diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/ssh-dbgeng.ps1 b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/ssh-dbgeng.ps1 index 35837b3ffd..96575eb840 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/ssh-dbgeng.ps1 +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/ssh-dbgeng.ps1 @@ -57,6 +57,7 @@ function Compute-Python-Args { return $arglist } +$Env:OPT_OS_WINDOWS = $true $tmpfile = "local-dbgeng.py" $arglist = Compute-Python-Args -TempFile $tmpfile diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py b/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py index 8c2016210f..7ee9c43442 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py @@ -24,7 +24,6 @@ args = os.getenv('OPT_TARGET_ARGS') def parse_parameters(): global cxn, target, args - os.environ['OPT_OS_WINDOWS'] = "true" argc = len(sys.argv) if argc == 1: return True diff --git a/Ghidra/Debug/Debugger-agent-x64dbg/data/debugger-launchers/ssh-x64dbg-attach.ps1 b/Ghidra/Debug/Debugger-agent-x64dbg/data/debugger-launchers/ssh-x64dbg-attach.ps1 index e7dbce57a8..a70cff8a90 100644 --- a/Ghidra/Debug/Debugger-agent-x64dbg/data/debugger-launchers/ssh-x64dbg-attach.ps1 +++ b/Ghidra/Debug/Debugger-agent-x64dbg/data/debugger-launchers/ssh-x64dbg-attach.ps1 @@ -57,6 +57,7 @@ function Compute-Python-Args { return $arglist } +$Env:OPT_OS_WINDOWS = $true $tmpfile = "local-x64dbg-attach.py" $arglist = Compute-Python-Args -TempFile $tmpfile diff --git a/Ghidra/Debug/Debugger-agent-x64dbg/data/debugger-launchers/ssh-x64dbg.ps1 b/Ghidra/Debug/Debugger-agent-x64dbg/data/debugger-launchers/ssh-x64dbg.ps1 index f1336d3be3..a9d5baa51d 100644 --- a/Ghidra/Debug/Debugger-agent-x64dbg/data/debugger-launchers/ssh-x64dbg.ps1 +++ b/Ghidra/Debug/Debugger-agent-x64dbg/data/debugger-launchers/ssh-x64dbg.ps1 @@ -66,6 +66,7 @@ function Compute-Python-Args { return $arglist } +$Env:OPT_OS_WINDOWS = $true $tmpfile = "local-x64dbg.py" $arglist = Compute-Python-Args -TempFile $tmpfile diff --git a/Ghidra/Debug/Debugger-agent-x64dbg/data/support/local-x64dbg.py b/Ghidra/Debug/Debugger-agent-x64dbg/data/support/local-x64dbg.py index 9222e660b7..5d550299a6 100644 --- a/Ghidra/Debug/Debugger-agent-x64dbg/data/support/local-x64dbg.py +++ b/Ghidra/Debug/Debugger-agent-x64dbg/data/support/local-x64dbg.py @@ -26,7 +26,6 @@ initdir = os.getenv('OPT_TARGET_DIR') def parse_parameters(): global cxn, target, args, initdir - os.environ['OPT_OS_WINDOWS'] = "true" argc = len(sys.argv) if argc == 1: return True