@@ -314,23 +314,23 @@ export class MI2 extends EventEmitter implements IBackend {
314314 }
315315 }
316316
317- onOutputStderr ( lines ) {
318- lines = < string [ ] > lines . split ( '\n' ) ;
317+ onOutputStderr ( str : string ) {
318+ let lines = str . split ( '\n' ) ;
319319 lines . forEach ( line => {
320320 this . log ( "stderr" , line ) ;
321321 } ) ;
322322 }
323323
324- onOutputPartial ( line ) {
324+ onOutputPartial ( line : string ) {
325325 if ( couldBeOutput ( line ) ) {
326326 this . logNoNewLine ( "stdout" , line ) ;
327327 return true ;
328328 }
329329 return false ;
330330 }
331331
332- onOutput ( lines ) {
333- lines = < string [ ] > lines . split ( '\n' ) ;
332+ onOutput ( str : string ) {
333+ let lines = str . split ( '\n' ) ;
334334 lines . forEach ( line => {
335335 if ( couldBeOutput ( line ) ) {
336336 if ( ! gdbMatch . exec ( line ) )
@@ -391,13 +391,13 @@ export class MI2 extends EventEmitter implements IBackend {
391391 case "solib-event" :
392392 case "syscall-entry" :
393393 case "syscall-return" :
394- // TODO: inform the user
394+ // TODO: inform the user
395395 this . emit ( "step-end" , parsed ) ;
396396 break ;
397397 case "fork" :
398398 case "vfork" :
399399 case "exec" :
400- // TODO: inform the user, possibly add second inferior
400+ // TODO: inform the user, possibly add second inferior
401401 this . emit ( "step-end" , parsed ) ;
402402 break ;
403403 case "signal-received" :
@@ -410,10 +410,10 @@ export class MI2 extends EventEmitter implements IBackend {
410410 this . log ( "stderr" , "Program exited with code " + parsed . record ( "exit-code" ) ) ;
411411 this . emit ( "exited-normally" , parsed ) ;
412412 break ;
413- // case "exited-signalled": // consider handling that explicit possible
414- // this.log("stderr", "Program exited because of signal " + parsed.record("signal"));
415- // this.emit("stopped", parsed);
416- // break;
413+ // case "exited-signalled": // consider handling that explicit possible
414+ // this.log("stderr", "Program exited because of signal " + parsed.record("signal"));
415+ // this.emit("stopped", parsed);
416+ // break;
417417
418418 default :
419419 this . log ( "console" , "Not implemented stop reason (assuming exception): " + reason ) ;
@@ -570,7 +570,7 @@ export class MI2 extends EventEmitter implements IBackend {
570570 return Promise . all ( promisses ) ;
571571 }
572572
573- setBreakPointCondition ( bkptNum , condition ) : Thenable < any > {
573+ setBreakPointCondition ( bkptNum : number , condition : string ) : Thenable < any > {
574574 if ( trace )
575575 this . log ( "stderr" , "setBreakPointCondition" ) ;
576576 return this . sendCommand ( "break-condition " + bkptNum + " " + condition ) ;
@@ -802,7 +802,7 @@ export class MI2 extends EventEmitter implements IBackend {
802802 const ret : RegisterValue [ ] = nodes . map ( node => {
803803 const index = parseInt ( MINode . valueOf ( node , "number" ) ) ;
804804 const value = MINode . valueOf ( node , "value" ) ;
805- return { index : index , value : value } ;
805+ return { index : index , value : value } ;
806806 } ) ;
807807 return ret ;
808808 }
0 commit comments