Run gdbserver script under bash manually.
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.
@@ -132,8 +132,11 @@ public class BlazeGDBServerProvider {
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 =
