better windows attach profiler handling

IDEA-CR-45310

(cherry picked from commit 1bdf26f8433bfe06be8cd7c6b5e5a49bd6963bc7)
This commit is contained in:
Viuginov Nickolay
2019-03-21 21:42:26 +03:00
parent a928b7d14f
commit 3b86fc7470
@@ -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
}
}