Skip to content

Commit

Permalink
Merge pull request #2795 from patzim/debug-runner-fix
Browse files Browse the repository at this point in the history
Fix gdb and lldb runners.
  • Loading branch information
AlexDaniel committed Mar 25, 2019
2 parents 888cf8c + 7846144 commit 6ba54fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/build/create-moar-runner.p6
Expand Up @@ -112,8 +112,8 @@ sub get-debugger-text($toolchain) {
}

sub get-perl6-debug-runner($toolchain, $perl6, $env-vars) {
my $cmdline = $toolchain eq 'gdb' ?? '%sgdb --quiet --ex=run --args %s "$@"'.sprintf($env-vars, $perl6)
!! $toolchain eq 'lldb' ?? '%slldb %s -- "$@"'.sprintf($env-vars, $perl6) !! die;
my $cmdline = $toolchain eq 'gdb' ?? '%sgdb --quiet --ex=run --args $DIR/%s "$@"'.sprintf($env-vars, $perl6)
!! $toolchain eq 'lldb' ?? '%slldb $DIR/%s -- "$@"'.sprintf($env-vars, $perl6) !! die;
return sprintf(q:to/EOS/, $bash-prelude, $env-vars, $perl6, get-debugger-text($toolchain), $cmdline);
%s
Expand Down

0 comments on commit 6ba54fb

Please sign in to comment.