File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ export class MI2 extends EventEmitter implements IBackend {
482
482
if ( trace )
483
483
this . log ( "stderr" , "goto" ) ;
484
484
return new Promise ( ( resolve , reject ) => {
485
- const target : string = ( filename ? filename + ":" : "" ) + line ;
485
+ const target : string = '"' + ( filename ? escape ( filename ) + ":" : "" ) + line + '"' ;
486
486
this . sendCommand ( "break-insert -t " + target ) . then ( ( ) => {
487
487
this . sendCommand ( "exec-jump " + target ) . then ( ( info ) => {
488
488
resolve ( info . resultRecords . resultClass == "running" ) ;
Original file line number Diff line number Diff line change @@ -60,7 +60,10 @@ export class MI2_LLDB extends MI2 {
60
60
61
61
goto ( filename : string , line : number ) : Thenable < Boolean > {
62
62
return new Promise ( ( resolve , reject ) => {
63
- const target : string = ( filename ? filename + ":" : "" ) + line ;
63
+ // LLDB parses the file differently than GDB...
64
+ // GDB doesn't allow quoting only the file but only the whole argument
65
+ // LLDB doesn't allow quoting the whole argument but rather only the file
66
+ const target : string = '"' + ( filename ? escape ( filename ) + ":" : "" ) + '"' + line ;
64
67
this . sendCliCommand ( "jump " + target ) . then ( ( ) => {
65
68
resolve ( true ) ;
66
69
} , reject ) ;
You can’t perform that action at this time.
0 commit comments