MCPcopy Create free account
hub / github.com/KDE/kdevelop / miCommand

Method miCommand

plugins/lldb/lldbcommand.cpp:22–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22QString LldbCommand::miCommand() const
23{
24 if (!overrideCmd.isEmpty()) {
25 return overrideCmd;
26 }
27
28 QString command;
29 bool isMI = false;
30
31 // TODO: find alternatives to the following command which are not supported in lldb-mi
32 switch(type()) {
33 case BreakCommands:
34 // empty command
35 break;
36 case BreakInfo:
37 // empty command
38 break;
39 case BreakInsert: // in lldb-mi, '-f' must be the last option switch right before location
40 command = QStringLiteral("break-insert");
41 isMI = true;
42 break;
43 case BreakList:
44 // empty command
45 break;
46 case BreakWatch:
47 command = QStringLiteral("break set var");
48 break;
49
50 case DataListChangedRegisters:
51 command = QStringLiteral("data-list-changed-registers");
52 break;
53 case DataReadMemory: // not implemented, deprecated
54 command = QStringLiteral("data-read-memory");
55 break;
56 case DataWriteRegisterVariables:
57 command = QStringLiteral("data-write-register-values");
58 break;
59
60 case EnableTimings:
61 command = QStringLiteral("enable-timings");
62 break;
63
64 case EnvironmentDirectory:
65 command = QStringLiteral("environment-directory");
66 break;
67 case EnvironmentPath:
68 command = QStringLiteral("environment-path");
69 break;
70 case EnvironmentPwd:
71 command = QStringLiteral("environment-pwd");
72 break;
73
74 case ExecUntil:
75 // TODO: write test case for this
76 command = QStringLiteral("thread until");
77 break;
78
79 case FileExecFile:

Callers

nothing calls this directly

Calls 2

typeFunction · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected