Escape breakpoint file path
Escape before quoting
This commit is contained in:
parent
f0c30a91b0
commit
2cd3ecd7db
1 changed files with 1 additions and 1 deletions
|
|
@ -468,7 +468,7 @@ export class MI2 extends EventEmitter implements IBackend {
|
||||||
if (breakpoint.raw)
|
if (breakpoint.raw)
|
||||||
location = '"' + escape(breakpoint.raw) + '"';
|
location = '"' + escape(breakpoint.raw) + '"';
|
||||||
else
|
else
|
||||||
location = '"' + breakpoint.file + ":" + breakpoint.line + '"';
|
location = '"' + escape(breakpoint.file) + ":" + breakpoint.line + '"';
|
||||||
this.sendCommand("break-insert -f " + location).then((result) => {
|
this.sendCommand("break-insert -f " + location).then((result) => {
|
||||||
if (result.resultRecords.resultClass == "done") {
|
if (result.resultRecords.resultClass == "done") {
|
||||||
let bkptNum = parseInt(result.result("bkpt.number"));
|
let bkptNum = parseInt(result.result("bkpt.number"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue