Skip to content

Commit

Permalink
Run gdbserver script under bash manually. Fixes #494.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Googler authored and copybara-github committed May 28, 2019
1 parent 6fd5f09 commit 7150963
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ static ImmutableList<String> 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 =
Expand Down

0 comments on commit 7150963

Please sign in to comment.