From 3b86fc7470bfeedeca6bbb96d963e9f02defbabe Mon Sep 17 00:00:00 2001 From: Viuginov Nickolay Date: Thu, 21 Mar 2019 16:50:06 +0300 Subject: [PATCH] better windows attach profiler handling IDEA-CR-45310 (cherry picked from commit 1bdf26f8433bfe06be8cd7c6b5e5a49bd6963bc7) --- .../xdebugger/attach/osHandlers/AttachOSHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/attach/osHandlers/AttachOSHandler.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/attach/osHandlers/AttachOSHandler.java index bf68adc8c0bd..05621dc0fe3d 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/attach/osHandlers/AttachOSHandler.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/attach/osHandlers/AttachOSHandler.java @@ -95,6 +95,10 @@ public abstract class AttachOSHandler { GeneralCommandLine getOsCommandLine = new GeneralCommandLine("uname", "-s"); final String osString = host.getProcessOutput(getOsCommandLine).getStdout().trim(); + if(osString.startsWith("MSYS")) { + return OSType.WINDOWS; + } + OSType osType; switch (osString) { @@ -118,6 +122,7 @@ public abstract class AttachOSHandler { public enum OSType { LINUX, MACOSX, + WINDOWS, UNKNOWN } }