1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #include "runtimecfgprovider.h" |
6 | #include "debuggerglobals.h" |
7 | |
8 | #include <QtDBus/QDBusInterface> |
9 | #include <QtDBus/QDBusReply> |
10 | |
11 | using namespace dap; |
12 | |
13 | RunTimeCfgProvider::RunTimeCfgProvider(QObject *parent) |
14 | : QObject(parent) |
15 | { |
16 | } |
17 | |
18 | const char *RunTimeCfgProvider::ip() const |
19 | { |
20 | return "localhost"; |
21 | } |
22 | |
23 | dap::InitializeRequest RunTimeCfgProvider::initalizeRequest() |
24 | { |
25 | // Just use temporary parameters now, same for the back |
26 | InitializeRequest request; |
27 | request.clientID = "unioncode"; |
28 | request.clientName = "unioncode client"; |
29 | request.adapterID = "cppdbg"; |
30 | request.pathFormat = "path"; |
31 | request.linesStartAt1 = true; |
32 | request.columnsStartAt1 = true; |
33 | request.supportsVariableType = false; |
34 | request.supportsVariablePaging = false; |
35 | // Disable RunInTerminal option untile client support. |
36 | request.supportsRunInTerminalRequest = false; |
37 | request.locale = "en-US"; |
38 | request.supportsProgressReporting = false; |
39 | request.supportsInvalidatedEvent = false; |
40 | request.supportsMemoryReferences = false; |
41 | |
42 | return request; |
43 | } |
44 |