From 7150963f16bdadc5ffc1c631431a89b64fe26320 Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 28 May 2019 08:35:11 -0700 Subject: [PATCH] Run gdbserver script under bash manually. Fixes #494. CLion removes the executable permission on the gdbserver script if the plugin is installed through the marketplace. Don't need to worry about the executable bit if we always run directly under bash. PiperOrigin-RevId: 250287356 --- .../google/idea/blaze/clwb/run/BlazeGDBServerProvider.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clwb/src/com/google/idea/blaze/clwb/run/BlazeGDBServerProvider.java b/clwb/src/com/google/idea/blaze/clwb/run/BlazeGDBServerProvider.java index d410354ab01..b8baceaf528 100644 --- a/clwb/src/com/google/idea/blaze/clwb/run/BlazeGDBServerProvider.java +++ b/clwb/src/com/google/idea/blaze/clwb/run/BlazeGDBServerProvider.java @@ -132,8 +132,11 @@ static ImmutableList getFlagsForDebugging( if (useRemoteDebuggingWrapper.getValue()) { String runUnderOption = String.format( - "--run_under='%s' '%s' --once localhost:%d --target", - GDBSERVER_WRAPPER.getValue(), gdbServerPath, handlerState.getDebugPortState().port); + "--run_under='%s' '%s' '%s' --once localhost:%d --target", + "bash", + GDBSERVER_WRAPPER.getValue(), + gdbServerPath, + handlerState.getDebugPortState().port); builder.add(runUnderOption); } else { String runUnderOption =