File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,13 @@ export class MI2_LLDB extends MI2 {
57
57
setBreakPointCondition ( bkptNum , condition ) : Thenable < any > {
58
58
return this . sendCommand ( "break-condition " + bkptNum + " \"" + escape ( condition ) + "\" 1" ) ;
59
59
}
60
+
61
+ goto ( filename : string , line : number ) : Thenable < Boolean > {
62
+ return new Promise ( ( resolve , reject ) => {
63
+ const target : string = ( filename ? filename + ":" : "" ) + line ;
64
+ this . sendCliCommand ( "jump " + target ) . then ( ( ) => {
65
+ resolve ( true ) ;
66
+ } , reject ) ;
67
+ } ) ;
68
+ }
60
69
}
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export interface AttachRequestArguments extends DebugProtocol.AttachRequestArgum
33
33
34
34
class LLDBDebugSession extends MI2DebugSession {
35
35
protected initializeRequest ( response : DebugProtocol . InitializeResponse , args : DebugProtocol . InitializeRequestArguments ) : void {
36
+ response . body . supportsGotoTargetsRequest = true ;
36
37
response . body . supportsHitConditionalBreakpoints = true ;
37
38
response . body . supportsConfigurationDoneRequest = true ;
38
39
response . body . supportsConditionalBreakpoints = true ;
You can’t perform that action at this time.
0 commit comments