Add an option to execute additional commands before GDB when using SSH
Closes #15
This commit is contained in:
parent
cae555af40
commit
d6ee383e75
2 changed files with 4 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ export interface SSHArguments {
|
||||||
remotex11screen: number;
|
remotex11screen: number;
|
||||||
x11port: number;
|
x11port: number;
|
||||||
x11host: string;
|
x11host: string;
|
||||||
|
bootstrap: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IBackend {
|
export interface IBackend {
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,9 @@ export class MI2 extends EventEmitter implements IBackend {
|
||||||
screen: args.remotex11screen
|
screen: args.remotex11screen
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
this.sshConn.exec(this.application + " " + this.preargs.join(" "), execArgs, (err, stream) => {
|
let sshCMD = this.application + " " + this.preargs.join(" ");
|
||||||
|
if (args.bootstrap) sshCMD = args.bootstrap + " && " + sshCMD;
|
||||||
|
this.sshConn.exec(sshCMD, execArgs, (err, stream) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
this.log("stderr", "Could not run " + this.application + " over ssh!");
|
this.log("stderr", "Could not run " + this.application + " over ssh!");
|
||||||
this.log("stderr", err.toString());
|
this.log("stderr", err.toString());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue