From 99a185f951a4036ebfadc74cdc5e49dc3a723668 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Wed, 10 Feb 2016 00:37:00 +0100 Subject: [PATCH] Replace windows backslashes to regular slashes for linux file systems over ssh --- src/gdb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdb.ts b/src/gdb.ts index 7916f29..cb33859 100644 --- a/src/gdb.ts +++ b/src/gdb.ts @@ -100,7 +100,7 @@ class MI2DebugSession extends DebugSession { if (args.ssh.remotex11screen === undefined) args.ssh.remotex11screen = 0; this.isSSH = true; - this.trimCWD = args.cwd; + this.trimCWD = args.cwd.replace(/\\/g, "/"); this.switchCWD = args.ssh.cwd; this.gdbDebugger.ssh(args.ssh, args.ssh.cwd, args.target).then(() => { if (args.autorun)