Skip to content

Commit deb87a5

Browse files
committed
increase gdb spawn timeout to a riduculous 10 seconds.
1 parent e341b9c commit deb87a5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/mi2/mi2.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class MI2 extends EventEmitter implements IBackend {
9696
reject(new Error('Could not start gdb, no response from gdb'));
9797
}, 10);
9898
timeout = undefined;
99-
}, 5000);
99+
}, 1000);
100100

101101
const swallOutput = this.debugOutput ? false : true;
102102
let v;
@@ -763,11 +763,11 @@ export class MI2 extends EventEmitter implements IBackend {
763763
reject(new MIError(result.result('msg') || 'Internal error', 'Setting breakpoint condition'));
764764
}
765765
},
766-
(reason) => {
767-
// Just delete the breakpoint we just created as the condition creation failed
768-
this.sendCommand(`break-delete ${bkptNum}`).then((x) => { }, (e) => { });
769-
reject(reason); // Use this reason as reason for failing to create the breakpoint
770-
});
766+
(reason) => {
767+
// Just delete the breakpoint we just created as the condition creation failed
768+
this.sendCommand(`break-delete ${bkptNum}`).then((x) => { }, (e) => { });
769+
reject(reason); // Use this reason as reason for failing to create the breakpoint
770+
});
771771
} else {
772772
resolve(breakpoint);
773773
}

0 commit comments

Comments
 (0)