Add the -f flag to break-insert

To also support shared libraries which are loaded after the breakpoint
insertion.
This commit is contained in:
Baptist BENOIST 2016-02-22 18:23:49 +01:00
commit 559d213f35

View file

@ -344,7 +344,7 @@ export class MI2 extends EventEmitter implements IBackend {
return new Promise((resolve, reject) => {
if (this.breakpoints.has(breakpoint))
return resolve(false);
this.sendCommand("break-insert " + breakpoint.file + ":" + breakpoint.line).then((result) => {
this.sendCommand("break-insert -f " + breakpoint.file + ":" + breakpoint.line).then((result) => {
if (result.resultRecords.resultClass == "done") {
let bkptNum = parseInt(result.result("bkpt.number"));
let newBrk = {