Commit 4c381ef 1 parent 49d40af commit 4c381ef Copy full SHA for 4c381ef
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ export class MI2 extends EventEmitter implements IBackend {
179
179
const sigstr = signal ? `, signal: ${ signal } ` : '' ;
180
180
const how = this . exiting ? '' : ( ( code || signal ) ? ' unexpectedly' : '' ) ;
181
181
const msg = `GDB session ended${ how } . exit-code: ${ codestr } ${ sigstr } \n` ;
182
- this . emit ( 'quit' , msg ) ;
182
+ this . emit ( 'quit' , how ? 'stderr' : 'stdout' , msg ) ;
183
183
}
184
184
}
185
185
Original file line number Diff line number Diff line change @@ -1742,13 +1742,13 @@ export class GDBDebugSession extends LoggingDebugSession {
1742
1742
}
1743
1743
}
1744
1744
1745
- protected quitEvent ( msg ?: string ) {
1745
+ protected quitEvent ( type ?: string , msg ?: string ) {
1746
1746
this . quit = true ;
1747
1747
if ( traceThreads ) {
1748
1748
this . handleMsg ( 'log' , '**** quit event\n' ) ;
1749
1749
}
1750
- if ( msg ) {
1751
- this . handleMsg ( 'stderr' , msg ) ;
1750
+ if ( msg && type ) {
1751
+ this . handleMsg ( type , msg ) ;
1752
1752
}
1753
1753
if ( this . server && this . server . isProcessRunning ( ) ) {
1754
1754
// A gdb quit may be happening with VSCode asking us to finish or a crash or user doing something
You can’t perform that action at this time.
0 commit comments