@theia/memory-inspector 1.45.0 → 1.46.0-next.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -71
- package/lib/browser/diff-widget/memory-diff-options-widget.d.ts +36 -36
- package/lib/browser/diff-widget/memory-diff-options-widget.js +132 -132
- package/lib/browser/diff-widget/memory-diff-select-widget.d.ts +50 -50
- package/lib/browser/diff-widget/memory-diff-select-widget.js +137 -137
- package/lib/browser/diff-widget/memory-diff-table-widget.d.ts +77 -77
- package/lib/browser/diff-widget/memory-diff-table-widget.js +314 -314
- package/lib/browser/diff-widget/memory-diff-widget-types.d.ts +41 -41
- package/lib/browser/diff-widget/memory-diff-widget-types.js +23 -23
- package/lib/browser/editable-widget/memory-editable-table-widget.d.ts +64 -64
- package/lib/browser/editable-widget/memory-editable-table-widget.js +324 -324
- package/lib/browser/memory-inspector-frontend-contribution.d.ts +46 -46
- package/lib/browser/memory-inspector-frontend-contribution.js +291 -291
- package/lib/browser/memory-inspector-frontend-module.d.ts +21 -21
- package/lib/browser/memory-inspector-frontend-module.js +87 -87
- package/lib/browser/memory-provider/cdt-gdb-memory-provider.d.ts +35 -35
- package/lib/browser/memory-provider/cdt-gdb-memory-provider.js +136 -136
- package/lib/browser/memory-provider/memory-provider-service.d.ts +36 -36
- package/lib/browser/memory-provider/memory-provider-service.js +101 -101
- package/lib/browser/memory-provider/memory-provider.d.ts +65 -65
- package/lib/browser/memory-provider/memory-provider.js +96 -96
- package/lib/browser/memory-provider/memory-provider.spec.d.ts +16 -16
- package/lib/browser/memory-provider/memory-provider.spec.js +23 -23
- package/lib/browser/memory-widget/memory-options-widget.d.ts +136 -136
- package/lib/browser/memory-widget/memory-options-widget.js +564 -564
- package/lib/browser/memory-widget/memory-table-widget.d.ts +146 -146
- package/lib/browser/memory-widget/memory-table-widget.js +487 -487
- package/lib/browser/memory-widget/memory-widget.d.ts +33 -33
- package/lib/browser/memory-widget/memory-widget.js +112 -112
- package/lib/browser/register-widget/register-filter-service.d.ts +42 -42
- package/lib/browser/register-widget/register-filter-service.js +81 -81
- package/lib/browser/register-widget/register-options-widget.d.ts +81 -81
- package/lib/browser/register-widget/register-options-widget.js +338 -338
- package/lib/browser/register-widget/register-table-widget.d.ts +77 -77
- package/lib/browser/register-widget/register-table-widget.js +230 -230
- package/lib/browser/register-widget/register-widget-types.d.ts +29 -29
- package/lib/browser/register-widget/register-widget-types.js +35 -35
- package/lib/browser/utils/memory-commands.d.ts +27 -27
- package/lib/browser/utils/memory-commands.js +67 -67
- package/lib/browser/utils/memory-hover-renderer.d.ts +33 -33
- package/lib/browser/utils/memory-hover-renderer.js +111 -111
- package/lib/browser/utils/memory-recents.d.ts +27 -27
- package/lib/browser/utils/memory-recents.js +52 -52
- package/lib/browser/utils/memory-widget-components.d.ts +58 -58
- package/lib/browser/utils/memory-widget-components.js +69 -69
- package/lib/browser/utils/memory-widget-manager.d.ts +50 -50
- package/lib/browser/utils/memory-widget-manager.js +182 -182
- package/lib/browser/utils/memory-widget-utils.d.ts +113 -113
- package/lib/browser/utils/memory-widget-utils.js +42 -42
- package/lib/browser/utils/memory-widget-variable-utils.d.ts +57 -57
- package/lib/browser/utils/memory-widget-variable-utils.js +143 -143
- package/lib/browser/utils/multi-select-bar.d.ts +31 -31
- package/lib/browser/utils/multi-select-bar.js +34 -34
- package/lib/browser/wrapper-widgets/memory-dock-panel.d.ts +24 -24
- package/lib/browser/wrapper-widgets/memory-dock-panel.js +48 -48
- package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.d.ts +23 -23
- package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.js +57 -57
- package/lib/browser/wrapper-widgets/memory-layout-widget.d.ts +51 -51
- package/lib/browser/wrapper-widgets/memory-layout-widget.js +191 -191
- package/lib/common/util.d.ts +21 -21
- package/lib/common/util.js +30 -30
- package/lib/common/utils.spec.d.ts +16 -16
- package/lib/common/utils.spec.js +45 -45
- package/package.json +4 -4
- package/src/browser/diff-widget/memory-diff-options-widget.tsx +152 -152
- package/src/browser/diff-widget/memory-diff-select-widget.tsx +163 -163
- package/src/browser/diff-widget/memory-diff-table-widget.tsx +366 -366
- package/src/browser/diff-widget/memory-diff-widget-types.ts +45 -45
- package/src/browser/editable-widget/memory-editable-table-widget.tsx +359 -359
- package/src/browser/memory-inspector-frontend-contribution.ts +301 -301
- package/src/browser/memory-inspector-frontend-module.ts +118 -118
- package/src/browser/memory-provider/cdt-gdb-memory-provider.ts +132 -132
- package/src/browser/memory-provider/memory-provider-service.ts +86 -86
- package/src/browser/memory-provider/memory-provider.spec.ts +23 -23
- package/src/browser/memory-provider/memory-provider.ts +119 -119
- package/src/browser/memory-widget/memory-options-widget.tsx +738 -738
- package/src/browser/memory-widget/memory-table-widget.tsx +625 -625
- package/src/browser/memory-widget/memory-widget.ts +114 -114
- package/src/browser/register-widget/register-filter-service.ts +76 -76
- package/src/browser/register-widget/register-options-widget.tsx +393 -393
- package/src/browser/register-widget/register-table-widget.tsx +276 -276
- package/src/browser/register-widget/register-widget-types.ts +45 -45
- package/src/browser/register-widget/register-widget.css +34 -34
- package/src/browser/style/index.css +746 -746
- package/src/browser/style/memory-lock.svg +21 -21
- package/src/browser/style/memory-view.svg +20 -20
- package/src/browser/style/register-lock.svg +29 -29
- package/src/browser/style/register-view.svg +28 -28
- package/src/browser/utils/memory-commands.ts +76 -76
- package/src/browser/utils/memory-hover-renderer.ts +113 -113
- package/src/browser/utils/memory-recents.ts +58 -58
- package/src/browser/utils/memory-widget-components.tsx +193 -193
- package/src/browser/utils/memory-widget-manager.ts +179 -179
- package/src/browser/utils/memory-widget-utils.tsx +132 -132
- package/src/browser/utils/memory-widget-variable-utils.ts +170 -170
- package/src/browser/utils/multi-select-bar.css +61 -61
- package/src/browser/utils/multi-select-bar.tsx +75 -75
- package/src/browser/wrapper-widgets/memory-dock-panel.ts +51 -51
- package/src/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.tsx +38 -38
- package/src/browser/wrapper-widgets/memory-layout-widget.tsx +167 -167
- package/src/common/util.ts +28 -28
- package/src/common/utils.spec.ts +52 -52
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (C) 2019 Ericsson and others.
|
|
4
|
-
*
|
|
5
|
-
* This program and the accompanying materials are made available under the
|
|
6
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
*
|
|
9
|
-
* This Source Code may also be made available under the following Secondary
|
|
10
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
* with the GNU Classpath Exception which is available at
|
|
13
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
*
|
|
15
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
********************************************************************************/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
require("../../src/browser/register-widget/register-widget.css");
|
|
19
|
-
require("../../src/browser/style/index.css");
|
|
20
|
-
require("../../src/browser/utils/multi-select-bar.css");
|
|
21
|
-
const core_1 = require("@theia/core");
|
|
22
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
-
const color_application_contribution_1 = require("@theia/core/lib/browser/color-application-contribution");
|
|
24
|
-
const tab_bar_toolbar_1 = require("@theia/core/lib/browser/shell/tab-bar-toolbar");
|
|
25
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
-
const memory_inspector_frontend_contribution_1 = require("./memory-inspector-frontend-contribution");
|
|
27
|
-
const memory_diff_options_widget_1 = require("./diff-widget/memory-diff-options-widget");
|
|
28
|
-
const memory_diff_select_widget_1 = require("./diff-widget/memory-diff-select-widget");
|
|
29
|
-
const memory_diff_table_widget_1 = require("./diff-widget/memory-diff-table-widget");
|
|
30
|
-
const memory_editable_table_widget_1 = require("./editable-widget/memory-editable-table-widget");
|
|
31
|
-
const memory_provider_1 = require("./memory-provider/memory-provider");
|
|
32
|
-
const memory_provider_service_1 = require("./memory-provider/memory-provider-service");
|
|
33
|
-
const memory_options_widget_1 = require("./memory-widget/memory-options-widget");
|
|
34
|
-
const memory_table_widget_1 = require("./memory-widget/memory-table-widget");
|
|
35
|
-
const memory_widget_1 = require("./memory-widget/memory-widget");
|
|
36
|
-
const register_options_widget_1 = require("./register-widget/register-options-widget");
|
|
37
|
-
const register_table_widget_1 = require("./register-widget/register-table-widget");
|
|
38
|
-
const register_widget_types_1 = require("./register-widget/register-widget-types");
|
|
39
|
-
const memory_hover_renderer_1 = require("./utils/memory-hover-renderer");
|
|
40
|
-
const memory_widget_manager_1 = require("./utils/memory-widget-manager");
|
|
41
|
-
const memory_widget_utils_1 = require("./utils/memory-widget-utils");
|
|
42
|
-
const memory_dock_panel_1 = require("./wrapper-widgets/memory-dock-panel");
|
|
43
|
-
const memory_dockpanel_placeholder_widget_1 = require("./wrapper-widgets/memory-dockpanel-placeholder-widget");
|
|
44
|
-
const memory_layout_widget_1 = require("./wrapper-widgets/memory-layout-widget");
|
|
45
|
-
const cdt_gdb_memory_provider_1 = require("./memory-provider/cdt-gdb-memory-provider");
|
|
46
|
-
exports.default = new inversify_1.ContainerModule(bind => {
|
|
47
|
-
(0, browser_1.bindViewContribution)(bind, memory_inspector_frontend_contribution_1.DebugFrontendContribution);
|
|
48
|
-
bind(color_application_contribution_1.ColorContribution).toService(memory_inspector_frontend_contribution_1.DebugFrontendContribution);
|
|
49
|
-
bind(tab_bar_toolbar_1.TabBarToolbarContribution).toService(memory_inspector_frontend_contribution_1.DebugFrontendContribution);
|
|
50
|
-
bind(browser_1.FrontendApplicationContribution).toService(memory_inspector_frontend_contribution_1.DebugFrontendContribution);
|
|
51
|
-
bind(memory_provider_service_1.MemoryProviderService).toSelf().inSingletonScope();
|
|
52
|
-
bind(memory_provider_1.DefaultMemoryProvider).toSelf().inSingletonScope();
|
|
53
|
-
(0, core_1.bindContributionProvider)(bind, memory_provider_1.MemoryProvider);
|
|
54
|
-
bind(memory_provider_1.MemoryProvider).to(cdt_gdb_memory_provider_1.CDTGDBMemoryProvider).inSingletonScope();
|
|
55
|
-
bind(memory_layout_widget_1.MemoryLayoutWidget).toSelf().inSingletonScope();
|
|
56
|
-
bind(memory_diff_select_widget_1.MemoryDiffSelectWidget).toSelf().inSingletonScope();
|
|
57
|
-
bind(memory_dockpanel_placeholder_widget_1.MemoryDockpanelPlaceholder).toSelf().inSingletonScope();
|
|
58
|
-
bind(memory_hover_renderer_1.MemoryHoverRendererService).toSelf().inSingletonScope();
|
|
59
|
-
bind(memory_widget_manager_1.MemoryWidgetManager).toSelf().inSingletonScope();
|
|
60
|
-
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
61
|
-
id: memory_dock_panel_1.MemoryDockPanel.ID,
|
|
62
|
-
createWidget: () => memory_dock_panel_1.MemoryDockPanel.createWidget(container),
|
|
63
|
-
}));
|
|
64
|
-
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
65
|
-
id: memory_layout_widget_1.MemoryLayoutWidget.ID,
|
|
66
|
-
createWidget: () => container.get(memory_layout_widget_1.MemoryLayoutWidget),
|
|
67
|
-
})).inSingletonScope();
|
|
68
|
-
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
69
|
-
id: memory_widget_1.MemoryWidget.ID,
|
|
70
|
-
createWidget: (options) => memory_widget_1.MemoryWidget.createWidget(container, memory_options_widget_1.MemoryOptionsWidget, memory_table_widget_1.MemoryTableWidget, memory_widget_utils_1.MemoryWidgetOptions, options),
|
|
71
|
-
}));
|
|
72
|
-
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
73
|
-
id: memory_editable_table_widget_1.EditableMemoryWidget.ID,
|
|
74
|
-
createWidget: (options) => memory_widget_1.MemoryWidget
|
|
75
|
-
.createWidget(container, memory_options_widget_1.MemoryOptionsWidget, memory_editable_table_widget_1.MemoryEditableTableWidget, memory_widget_utils_1.MemoryWidgetOptions, options),
|
|
76
|
-
}));
|
|
77
|
-
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
78
|
-
id: memory_diff_table_widget_1.MemoryDiffWidget.ID,
|
|
79
|
-
createWidget: (options) => memory_widget_1.MemoryWidget
|
|
80
|
-
.createWidget(container, memory_diff_options_widget_1.MemoryDiffOptionsWidget, memory_diff_table_widget_1.MemoryDiffTableWidget, memory_widget_utils_1.MemoryDiffWidgetData, options),
|
|
81
|
-
}));
|
|
82
|
-
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
83
|
-
id: register_widget_types_1.RegisterWidget.ID,
|
|
84
|
-
createWidget: (options) => register_widget_types_1.RegisterWidget
|
|
85
|
-
.createContainer(container, register_options_widget_1.RegisterOptionsWidget, register_table_widget_1.RegisterTableWidget, memory_widget_utils_1.RegisterWidgetOptions, options).get(memory_widget_1.MemoryWidget),
|
|
86
|
-
}));
|
|
87
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (C) 2019 Ericsson and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
require("../../src/browser/register-widget/register-widget.css");
|
|
19
|
+
require("../../src/browser/style/index.css");
|
|
20
|
+
require("../../src/browser/utils/multi-select-bar.css");
|
|
21
|
+
const core_1 = require("@theia/core");
|
|
22
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
+
const color_application_contribution_1 = require("@theia/core/lib/browser/color-application-contribution");
|
|
24
|
+
const tab_bar_toolbar_1 = require("@theia/core/lib/browser/shell/tab-bar-toolbar");
|
|
25
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
+
const memory_inspector_frontend_contribution_1 = require("./memory-inspector-frontend-contribution");
|
|
27
|
+
const memory_diff_options_widget_1 = require("./diff-widget/memory-diff-options-widget");
|
|
28
|
+
const memory_diff_select_widget_1 = require("./diff-widget/memory-diff-select-widget");
|
|
29
|
+
const memory_diff_table_widget_1 = require("./diff-widget/memory-diff-table-widget");
|
|
30
|
+
const memory_editable_table_widget_1 = require("./editable-widget/memory-editable-table-widget");
|
|
31
|
+
const memory_provider_1 = require("./memory-provider/memory-provider");
|
|
32
|
+
const memory_provider_service_1 = require("./memory-provider/memory-provider-service");
|
|
33
|
+
const memory_options_widget_1 = require("./memory-widget/memory-options-widget");
|
|
34
|
+
const memory_table_widget_1 = require("./memory-widget/memory-table-widget");
|
|
35
|
+
const memory_widget_1 = require("./memory-widget/memory-widget");
|
|
36
|
+
const register_options_widget_1 = require("./register-widget/register-options-widget");
|
|
37
|
+
const register_table_widget_1 = require("./register-widget/register-table-widget");
|
|
38
|
+
const register_widget_types_1 = require("./register-widget/register-widget-types");
|
|
39
|
+
const memory_hover_renderer_1 = require("./utils/memory-hover-renderer");
|
|
40
|
+
const memory_widget_manager_1 = require("./utils/memory-widget-manager");
|
|
41
|
+
const memory_widget_utils_1 = require("./utils/memory-widget-utils");
|
|
42
|
+
const memory_dock_panel_1 = require("./wrapper-widgets/memory-dock-panel");
|
|
43
|
+
const memory_dockpanel_placeholder_widget_1 = require("./wrapper-widgets/memory-dockpanel-placeholder-widget");
|
|
44
|
+
const memory_layout_widget_1 = require("./wrapper-widgets/memory-layout-widget");
|
|
45
|
+
const cdt_gdb_memory_provider_1 = require("./memory-provider/cdt-gdb-memory-provider");
|
|
46
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
47
|
+
(0, browser_1.bindViewContribution)(bind, memory_inspector_frontend_contribution_1.DebugFrontendContribution);
|
|
48
|
+
bind(color_application_contribution_1.ColorContribution).toService(memory_inspector_frontend_contribution_1.DebugFrontendContribution);
|
|
49
|
+
bind(tab_bar_toolbar_1.TabBarToolbarContribution).toService(memory_inspector_frontend_contribution_1.DebugFrontendContribution);
|
|
50
|
+
bind(browser_1.FrontendApplicationContribution).toService(memory_inspector_frontend_contribution_1.DebugFrontendContribution);
|
|
51
|
+
bind(memory_provider_service_1.MemoryProviderService).toSelf().inSingletonScope();
|
|
52
|
+
bind(memory_provider_1.DefaultMemoryProvider).toSelf().inSingletonScope();
|
|
53
|
+
(0, core_1.bindContributionProvider)(bind, memory_provider_1.MemoryProvider);
|
|
54
|
+
bind(memory_provider_1.MemoryProvider).to(cdt_gdb_memory_provider_1.CDTGDBMemoryProvider).inSingletonScope();
|
|
55
|
+
bind(memory_layout_widget_1.MemoryLayoutWidget).toSelf().inSingletonScope();
|
|
56
|
+
bind(memory_diff_select_widget_1.MemoryDiffSelectWidget).toSelf().inSingletonScope();
|
|
57
|
+
bind(memory_dockpanel_placeholder_widget_1.MemoryDockpanelPlaceholder).toSelf().inSingletonScope();
|
|
58
|
+
bind(memory_hover_renderer_1.MemoryHoverRendererService).toSelf().inSingletonScope();
|
|
59
|
+
bind(memory_widget_manager_1.MemoryWidgetManager).toSelf().inSingletonScope();
|
|
60
|
+
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
61
|
+
id: memory_dock_panel_1.MemoryDockPanel.ID,
|
|
62
|
+
createWidget: () => memory_dock_panel_1.MemoryDockPanel.createWidget(container),
|
|
63
|
+
}));
|
|
64
|
+
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
65
|
+
id: memory_layout_widget_1.MemoryLayoutWidget.ID,
|
|
66
|
+
createWidget: () => container.get(memory_layout_widget_1.MemoryLayoutWidget),
|
|
67
|
+
})).inSingletonScope();
|
|
68
|
+
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
69
|
+
id: memory_widget_1.MemoryWidget.ID,
|
|
70
|
+
createWidget: (options) => memory_widget_1.MemoryWidget.createWidget(container, memory_options_widget_1.MemoryOptionsWidget, memory_table_widget_1.MemoryTableWidget, memory_widget_utils_1.MemoryWidgetOptions, options),
|
|
71
|
+
}));
|
|
72
|
+
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
73
|
+
id: memory_editable_table_widget_1.EditableMemoryWidget.ID,
|
|
74
|
+
createWidget: (options) => memory_widget_1.MemoryWidget
|
|
75
|
+
.createWidget(container, memory_options_widget_1.MemoryOptionsWidget, memory_editable_table_widget_1.MemoryEditableTableWidget, memory_widget_utils_1.MemoryWidgetOptions, options),
|
|
76
|
+
}));
|
|
77
|
+
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
78
|
+
id: memory_diff_table_widget_1.MemoryDiffWidget.ID,
|
|
79
|
+
createWidget: (options) => memory_widget_1.MemoryWidget
|
|
80
|
+
.createWidget(container, memory_diff_options_widget_1.MemoryDiffOptionsWidget, memory_diff_table_widget_1.MemoryDiffTableWidget, memory_widget_utils_1.MemoryDiffWidgetData, options),
|
|
81
|
+
}));
|
|
82
|
+
bind(browser_1.WidgetFactory).toDynamicValue(({ container }) => ({
|
|
83
|
+
id: register_widget_types_1.RegisterWidget.ID,
|
|
84
|
+
createWidget: (options) => register_widget_types_1.RegisterWidget
|
|
85
|
+
.createContainer(container, register_options_widget_1.RegisterOptionsWidget, register_table_widget_1.RegisterTableWidget, memory_widget_utils_1.RegisterWidgetOptions, options).get(memory_widget_1.MemoryWidget),
|
|
86
|
+
}));
|
|
87
|
+
});
|
|
88
88
|
//# sourceMappingURL=memory-inspector-frontend-module.js.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2019 Ericsson and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
import { DebugVariable } from '@theia/debug/lib/browser/console/debug-console-items';
|
|
17
|
-
import { DebugSession } from '@theia/debug/lib/browser/debug-session';
|
|
18
|
-
import { VariableRange } from '../utils/memory-widget-variable-utils';
|
|
19
|
-
import { AbstractMemoryProvider } from './memory-provider';
|
|
20
|
-
/**
|
|
21
|
-
* @file this file exists to show the customizations possible for specific debug adapters. Within the confines of the DebugAdapterProtocol, different adapters can behave
|
|
22
|
-
* quite differently. In particular, they can differ in the kinds of expressions that they treat as references (in the `memoryReference` field of MemoryReadArguments, for example)
|
|
23
|
-
* and the kinds of expressions that they can evaluate (for example to assist in determining the size of variables). The `MemoryProvider` type exists to allow applications
|
|
24
|
-
* to enhance the base functionality of the Memory Inspector by tapping into specifics of known adapters.
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* Read memory through the current debug session, using the cdt-gdb-adapter
|
|
28
|
-
* extension to read memory.
|
|
29
|
-
*/
|
|
30
|
-
export declare class CDTGDBMemoryProvider extends AbstractMemoryProvider {
|
|
31
|
-
canHandle(session: DebugSession): boolean;
|
|
32
|
-
getLocals(session: DebugSession | undefined): Promise<VariableRange[]>;
|
|
33
|
-
supportsVariableReferenceSyntax(session: DebugSession, currentLevel?: DebugVariable): boolean;
|
|
34
|
-
formatVariableReference(session: DebugSession, currentLevel?: DebugVariable): string;
|
|
35
|
-
}
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (C) 2019 Ericsson and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { DebugVariable } from '@theia/debug/lib/browser/console/debug-console-items';
|
|
17
|
+
import { DebugSession } from '@theia/debug/lib/browser/debug-session';
|
|
18
|
+
import { VariableRange } from '../utils/memory-widget-variable-utils';
|
|
19
|
+
import { AbstractMemoryProvider } from './memory-provider';
|
|
20
|
+
/**
|
|
21
|
+
* @file this file exists to show the customizations possible for specific debug adapters. Within the confines of the DebugAdapterProtocol, different adapters can behave
|
|
22
|
+
* quite differently. In particular, they can differ in the kinds of expressions that they treat as references (in the `memoryReference` field of MemoryReadArguments, for example)
|
|
23
|
+
* and the kinds of expressions that they can evaluate (for example to assist in determining the size of variables). The `MemoryProvider` type exists to allow applications
|
|
24
|
+
* to enhance the base functionality of the Memory Inspector by tapping into specifics of known adapters.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Read memory through the current debug session, using the cdt-gdb-adapter
|
|
28
|
+
* extension to read memory.
|
|
29
|
+
*/
|
|
30
|
+
export declare class CDTGDBMemoryProvider extends AbstractMemoryProvider {
|
|
31
|
+
canHandle(session: DebugSession): boolean;
|
|
32
|
+
getLocals(session: DebugSession | undefined): Promise<VariableRange[]>;
|
|
33
|
+
supportsVariableReferenceSyntax(session: DebugSession, currentLevel?: DebugVariable): boolean;
|
|
34
|
+
formatVariableReference(session: DebugSession, currentLevel?: DebugVariable): string;
|
|
35
|
+
}
|
|
36
36
|
//# sourceMappingURL=cdt-gdb-memory-provider.d.ts.map
|
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (C) 2019 Ericsson and others.
|
|
4
|
-
*
|
|
5
|
-
* This program and the accompanying materials are made available under the
|
|
6
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
*
|
|
9
|
-
* This Source Code may also be made available under the following Secondary
|
|
10
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
* with the GNU Classpath Exception which is available at
|
|
13
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
*
|
|
15
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
********************************************************************************/
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.CDTGDBMemoryProvider = void 0;
|
|
25
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
-
const debug_console_items_1 = require("@theia/debug/lib/browser/console/debug-console-items");
|
|
27
|
-
const util_1 = require("../../common/util");
|
|
28
|
-
const memory_provider_1 = require("./memory-provider");
|
|
29
|
-
/**
|
|
30
|
-
* @file this file exists to show the customizations possible for specific debug adapters. Within the confines of the DebugAdapterProtocol, different adapters can behave
|
|
31
|
-
* quite differently. In particular, they can differ in the kinds of expressions that they treat as references (in the `memoryReference` field of MemoryReadArguments, for example)
|
|
32
|
-
* and the kinds of expressions that they can evaluate (for example to assist in determining the size of variables). The `MemoryProvider` type exists to allow applications
|
|
33
|
-
* to enhance the base functionality of the Memory Inspector by tapping into specifics of known adapters.
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* Read memory through the current debug session, using the cdt-gdb-adapter
|
|
37
|
-
* extension to read memory.
|
|
38
|
-
*/
|
|
39
|
-
let CDTGDBMemoryProvider = class CDTGDBMemoryProvider extends memory_provider_1.AbstractMemoryProvider {
|
|
40
|
-
canHandle(session) {
|
|
41
|
-
return session.configuration.type === 'gdb';
|
|
42
|
-
}
|
|
43
|
-
async getLocals(session) {
|
|
44
|
-
if (session === undefined) {
|
|
45
|
-
console.warn('No active debug session.');
|
|
46
|
-
return [];
|
|
47
|
-
}
|
|
48
|
-
const frame = session.currentFrame;
|
|
49
|
-
if (frame === undefined) {
|
|
50
|
-
throw new Error('No active stack frame.');
|
|
51
|
-
}
|
|
52
|
-
const ranges = [];
|
|
53
|
-
const scopes = await frame.getScopes();
|
|
54
|
-
const scopesWithoutRegisters = scopes.filter(x => x.render() !== 'Registers');
|
|
55
|
-
for (const scope of scopesWithoutRegisters) {
|
|
56
|
-
const variables = await scope.getElements();
|
|
57
|
-
for (const v of variables) {
|
|
58
|
-
if (v instanceof debug_console_items_1.DebugVariable) {
|
|
59
|
-
const addrExp = `&${v.name}`;
|
|
60
|
-
const sizeExp = `sizeof(${v.name})`;
|
|
61
|
-
const addrResp = await session.sendRequest('evaluate', {
|
|
62
|
-
expression: addrExp,
|
|
63
|
-
context: 'watch',
|
|
64
|
-
frameId: frame.raw.id,
|
|
65
|
-
}).catch(e => { console.warn(`Failed to evaluate ${addrExp}. Corresponding variable will be omitted from Memory Inspector display.`, e); });
|
|
66
|
-
if (!addrResp) {
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
const sizeResp = await session.sendRequest('evaluate', {
|
|
70
|
-
expression: sizeExp,
|
|
71
|
-
context: 'watch',
|
|
72
|
-
frameId: frame.raw.id,
|
|
73
|
-
}).catch(e => { console.warn(`Failed to evaluate ${sizeExp}. Corresponding variable will be omitted from Memory Inspector display.`, e); });
|
|
74
|
-
if (!sizeResp) {
|
|
75
|
-
continue;
|
|
76
|
-
}
|
|
77
|
-
// Make sure the address is in the format we expect.
|
|
78
|
-
const addressPart = /0x[0-9a-f]+/i.exec(addrResp.body.result);
|
|
79
|
-
if (!addressPart) {
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
if (!/^[0-9]+$/.test(sizeResp.body.result)) {
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
const size = parseInt(sizeResp.body.result);
|
|
86
|
-
const address = (0, util_1.hexStrToUnsignedLong)(addressPart[0]);
|
|
87
|
-
const pastTheEndAddress = address.add(size);
|
|
88
|
-
ranges.push({
|
|
89
|
-
name: v.name,
|
|
90
|
-
address,
|
|
91
|
-
pastTheEndAddress,
|
|
92
|
-
type: v.type,
|
|
93
|
-
value: v.value,
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return ranges;
|
|
99
|
-
}
|
|
100
|
-
supportsVariableReferenceSyntax(session, currentLevel) {
|
|
101
|
-
if (this.canHandle(session)) {
|
|
102
|
-
if (!currentLevel) {
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
while (currentLevel.parent instanceof debug_console_items_1.DebugVariable) {
|
|
106
|
-
currentLevel = currentLevel.parent;
|
|
107
|
-
}
|
|
108
|
-
return currentLevel.parent instanceof debug_console_items_1.DebugScope && currentLevel.parent['raw'].name === 'Local';
|
|
109
|
-
}
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
formatVariableReference(session, currentLevel) {
|
|
113
|
-
if (currentLevel && this.canHandle(session)) {
|
|
114
|
-
let { name } = currentLevel;
|
|
115
|
-
while (currentLevel.parent instanceof debug_console_items_1.DebugVariable) {
|
|
116
|
-
const separator = name.startsWith('[') ? '' : '.';
|
|
117
|
-
currentLevel = currentLevel.parent;
|
|
118
|
-
if (name.startsWith(`*${currentLevel.name}.`)) { // Theia has added a layer of pointer dereferencing
|
|
119
|
-
name = name.replace(`*${currentLevel.name}.`, `(*${currentLevel.name})->`);
|
|
120
|
-
}
|
|
121
|
-
else if (name.startsWith(`*${currentLevel.name}`)) {
|
|
122
|
-
// that's fine, it's what you clicked on and probably what you want to see.
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
name = `${currentLevel.name}${separator}${name}`;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return `&(${name})`;
|
|
129
|
-
}
|
|
130
|
-
return '';
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
CDTGDBMemoryProvider = __decorate([
|
|
134
|
-
(0, inversify_1.injectable)()
|
|
135
|
-
], CDTGDBMemoryProvider);
|
|
136
|
-
exports.CDTGDBMemoryProvider = CDTGDBMemoryProvider;
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (C) 2019 Ericsson and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.CDTGDBMemoryProvider = void 0;
|
|
25
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
+
const debug_console_items_1 = require("@theia/debug/lib/browser/console/debug-console-items");
|
|
27
|
+
const util_1 = require("../../common/util");
|
|
28
|
+
const memory_provider_1 = require("./memory-provider");
|
|
29
|
+
/**
|
|
30
|
+
* @file this file exists to show the customizations possible for specific debug adapters. Within the confines of the DebugAdapterProtocol, different adapters can behave
|
|
31
|
+
* quite differently. In particular, they can differ in the kinds of expressions that they treat as references (in the `memoryReference` field of MemoryReadArguments, for example)
|
|
32
|
+
* and the kinds of expressions that they can evaluate (for example to assist in determining the size of variables). The `MemoryProvider` type exists to allow applications
|
|
33
|
+
* to enhance the base functionality of the Memory Inspector by tapping into specifics of known adapters.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Read memory through the current debug session, using the cdt-gdb-adapter
|
|
37
|
+
* extension to read memory.
|
|
38
|
+
*/
|
|
39
|
+
let CDTGDBMemoryProvider = class CDTGDBMemoryProvider extends memory_provider_1.AbstractMemoryProvider {
|
|
40
|
+
canHandle(session) {
|
|
41
|
+
return session.configuration.type === 'gdb';
|
|
42
|
+
}
|
|
43
|
+
async getLocals(session) {
|
|
44
|
+
if (session === undefined) {
|
|
45
|
+
console.warn('No active debug session.');
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
const frame = session.currentFrame;
|
|
49
|
+
if (frame === undefined) {
|
|
50
|
+
throw new Error('No active stack frame.');
|
|
51
|
+
}
|
|
52
|
+
const ranges = [];
|
|
53
|
+
const scopes = await frame.getScopes();
|
|
54
|
+
const scopesWithoutRegisters = scopes.filter(x => x.render() !== 'Registers');
|
|
55
|
+
for (const scope of scopesWithoutRegisters) {
|
|
56
|
+
const variables = await scope.getElements();
|
|
57
|
+
for (const v of variables) {
|
|
58
|
+
if (v instanceof debug_console_items_1.DebugVariable) {
|
|
59
|
+
const addrExp = `&${v.name}`;
|
|
60
|
+
const sizeExp = `sizeof(${v.name})`;
|
|
61
|
+
const addrResp = await session.sendRequest('evaluate', {
|
|
62
|
+
expression: addrExp,
|
|
63
|
+
context: 'watch',
|
|
64
|
+
frameId: frame.raw.id,
|
|
65
|
+
}).catch(e => { console.warn(`Failed to evaluate ${addrExp}. Corresponding variable will be omitted from Memory Inspector display.`, e); });
|
|
66
|
+
if (!addrResp) {
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
const sizeResp = await session.sendRequest('evaluate', {
|
|
70
|
+
expression: sizeExp,
|
|
71
|
+
context: 'watch',
|
|
72
|
+
frameId: frame.raw.id,
|
|
73
|
+
}).catch(e => { console.warn(`Failed to evaluate ${sizeExp}. Corresponding variable will be omitted from Memory Inspector display.`, e); });
|
|
74
|
+
if (!sizeResp) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
// Make sure the address is in the format we expect.
|
|
78
|
+
const addressPart = /0x[0-9a-f]+/i.exec(addrResp.body.result);
|
|
79
|
+
if (!addressPart) {
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
if (!/^[0-9]+$/.test(sizeResp.body.result)) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
const size = parseInt(sizeResp.body.result);
|
|
86
|
+
const address = (0, util_1.hexStrToUnsignedLong)(addressPart[0]);
|
|
87
|
+
const pastTheEndAddress = address.add(size);
|
|
88
|
+
ranges.push({
|
|
89
|
+
name: v.name,
|
|
90
|
+
address,
|
|
91
|
+
pastTheEndAddress,
|
|
92
|
+
type: v.type,
|
|
93
|
+
value: v.value,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return ranges;
|
|
99
|
+
}
|
|
100
|
+
supportsVariableReferenceSyntax(session, currentLevel) {
|
|
101
|
+
if (this.canHandle(session)) {
|
|
102
|
+
if (!currentLevel) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
while (currentLevel.parent instanceof debug_console_items_1.DebugVariable) {
|
|
106
|
+
currentLevel = currentLevel.parent;
|
|
107
|
+
}
|
|
108
|
+
return currentLevel.parent instanceof debug_console_items_1.DebugScope && currentLevel.parent['raw'].name === 'Local';
|
|
109
|
+
}
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
formatVariableReference(session, currentLevel) {
|
|
113
|
+
if (currentLevel && this.canHandle(session)) {
|
|
114
|
+
let { name } = currentLevel;
|
|
115
|
+
while (currentLevel.parent instanceof debug_console_items_1.DebugVariable) {
|
|
116
|
+
const separator = name.startsWith('[') ? '' : '.';
|
|
117
|
+
currentLevel = currentLevel.parent;
|
|
118
|
+
if (name.startsWith(`*${currentLevel.name}.`)) { // Theia has added a layer of pointer dereferencing
|
|
119
|
+
name = name.replace(`*${currentLevel.name}.`, `(*${currentLevel.name})->`);
|
|
120
|
+
}
|
|
121
|
+
else if (name.startsWith(`*${currentLevel.name}`)) {
|
|
122
|
+
// that's fine, it's what you clicked on and probably what you want to see.
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
name = `${currentLevel.name}${separator}${name}`;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return `&(${name})`;
|
|
129
|
+
}
|
|
130
|
+
return '';
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
CDTGDBMemoryProvider = __decorate([
|
|
134
|
+
(0, inversify_1.injectable)()
|
|
135
|
+
], CDTGDBMemoryProvider);
|
|
136
|
+
exports.CDTGDBMemoryProvider = CDTGDBMemoryProvider;
|
|
137
137
|
//# sourceMappingURL=cdt-gdb-memory-provider.js.map
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2021 Ericsson and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
import { ContributionProvider } from '@theia/core';
|
|
17
|
-
import { DebugVariable } from '@theia/debug/lib/browser/console/debug-console-items';
|
|
18
|
-
import { DebugSession } from '@theia/debug/lib/browser/debug-session';
|
|
19
|
-
import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
|
|
20
|
-
import { DebugProtocol } from '@vscode/debugprotocol';
|
|
21
|
-
import { Interfaces } from '../utils/memory-widget-utils';
|
|
22
|
-
import { VariableRange } from '../utils/memory-widget-variable-utils';
|
|
23
|
-
import { DefaultMemoryProvider, MemoryProvider } from './memory-provider';
|
|
24
|
-
export declare class MemoryProviderService {
|
|
25
|
-
protected readonly sessionManager: DebugSessionManager;
|
|
26
|
-
protected readonly defaultProvider: DefaultMemoryProvider;
|
|
27
|
-
protected readonly contributions: ContributionProvider<MemoryProvider>;
|
|
28
|
-
readMemory(readMemoryArguments: DebugProtocol.ReadMemoryArguments): Promise<Interfaces.MemoryReadResult>;
|
|
29
|
-
writeMemory(writeMemoryArguments: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse>;
|
|
30
|
-
getLocals(): Promise<VariableRange[]>;
|
|
31
|
-
supportsVariableReferenceSyntax(variable?: DebugVariable): boolean;
|
|
32
|
-
formatVariableReference(variable?: DebugVariable): string;
|
|
33
|
-
/** @throws with {@link message} if there is no active debug session. */
|
|
34
|
-
protected getSession(message: string): DebugSession;
|
|
35
|
-
protected getProvider(session: DebugSession, ensure?: keyof MemoryProvider): Required<MemoryProvider>;
|
|
36
|
-
}
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (C) 2021 Ericsson and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { ContributionProvider } from '@theia/core';
|
|
17
|
+
import { DebugVariable } from '@theia/debug/lib/browser/console/debug-console-items';
|
|
18
|
+
import { DebugSession } from '@theia/debug/lib/browser/debug-session';
|
|
19
|
+
import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
|
|
20
|
+
import { DebugProtocol } from '@vscode/debugprotocol';
|
|
21
|
+
import { Interfaces } from '../utils/memory-widget-utils';
|
|
22
|
+
import { VariableRange } from '../utils/memory-widget-variable-utils';
|
|
23
|
+
import { DefaultMemoryProvider, MemoryProvider } from './memory-provider';
|
|
24
|
+
export declare class MemoryProviderService {
|
|
25
|
+
protected readonly sessionManager: DebugSessionManager;
|
|
26
|
+
protected readonly defaultProvider: DefaultMemoryProvider;
|
|
27
|
+
protected readonly contributions: ContributionProvider<MemoryProvider>;
|
|
28
|
+
readMemory(readMemoryArguments: DebugProtocol.ReadMemoryArguments): Promise<Interfaces.MemoryReadResult>;
|
|
29
|
+
writeMemory(writeMemoryArguments: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse>;
|
|
30
|
+
getLocals(): Promise<VariableRange[]>;
|
|
31
|
+
supportsVariableReferenceSyntax(variable?: DebugVariable): boolean;
|
|
32
|
+
formatVariableReference(variable?: DebugVariable): string;
|
|
33
|
+
/** @throws with {@link message} if there is no active debug session. */
|
|
34
|
+
protected getSession(message: string): DebugSession;
|
|
35
|
+
protected getProvider(session: DebugSession, ensure?: keyof MemoryProvider): Required<MemoryProvider>;
|
|
36
|
+
}
|
|
37
37
|
//# sourceMappingURL=memory-provider-service.d.ts.map
|