Skip to content

Commit 31376fa

Browse files
ntoskrnl7WebFreak001
authored andcommitted
lldb-mi support
1 parent 0744f84 commit 31376fa

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/backend/mi2/mi2lldb.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,13 @@ export class MI2_LLDB extends MI2 {
5757
setBreakPointCondition(bkptNum, condition): Thenable<any> {
5858
return this.sendCommand("break-condition " + bkptNum + " \"" + escape(condition) + "\" 1");
5959
}
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+
}
6069
}

src/lldb.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export interface AttachRequestArguments extends DebugProtocol.AttachRequestArgum
3333

3434
class LLDBDebugSession extends MI2DebugSession {
3535
protected initializeRequest(response: DebugProtocol.InitializeResponse, args: DebugProtocol.InitializeRequestArguments): void {
36+
response.body.supportsGotoTargetsRequest = true;
3637
response.body.supportsHitConditionalBreakpoints = true;
3738
response.body.supportsConfigurationDoneRequest = true;
3839
response.body.supportsConditionalBreakpoints = true;

0 commit comments

Comments
 (0)