Skip to content

Commit

Permalink
pass arguments to the gdbserver command line
Browse files Browse the repository at this point in the history
`gdb` does not pass them
  • Loading branch information
doudou committed Aug 8, 2018
1 parent 02af275 commit c7b5039
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,11 @@ export class CXXConfigurationProvider extends ConfigurationProvider
}

config.debugServerPath = ws.autoprojExePath();
config.debugServerArgs =
`sync exec ${syncName} -- gdbserver --once :${port} "${config.program}"`;
let debugServerArgs = `sync exec ${syncName} -- gdbserver --once :${port} "${config.program}"`;
if (config.args && config.args.length > 0) {
debugServerArgs = debugServerArgs + ` "${config.args.join("\" \"")}"`;
}
config.debugServerArgs = debugServerArgs;
config.miDebuggerServerAddress = `${uri.hostname}:${port}`;
}
}
Expand Down

0 comments on commit c7b5039

Please sign in to comment.