@theia/memory-inspector 1.67.0-next.13 → 1.67.0-next.56
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 +1 -1
- package/package.json +4 -4
- package/lib/browser/diff-widget/memory-diff-options-widget.d.ts +0 -37
- package/lib/browser/diff-widget/memory-diff-options-widget.d.ts.map +0 -1
- package/lib/browser/diff-widget/memory-diff-options-widget.js +0 -125
- package/lib/browser/diff-widget/memory-diff-options-widget.js.map +0 -1
- package/lib/browser/diff-widget/memory-diff-select-widget.d.ts +0 -51
- package/lib/browser/diff-widget/memory-diff-select-widget.d.ts.map +0 -1
- package/lib/browser/diff-widget/memory-diff-select-widget.js +0 -130
- package/lib/browser/diff-widget/memory-diff-select-widget.js.map +0 -1
- package/lib/browser/diff-widget/memory-diff-table-widget.d.ts +0 -78
- package/lib/browser/diff-widget/memory-diff-table-widget.d.ts.map +0 -1
- package/lib/browser/diff-widget/memory-diff-table-widget.js +0 -307
- package/lib/browser/diff-widget/memory-diff-table-widget.js.map +0 -1
- package/lib/browser/diff-widget/memory-diff-widget-types.d.ts +0 -42
- package/lib/browser/diff-widget/memory-diff-widget-types.d.ts.map +0 -1
- package/lib/browser/diff-widget/memory-diff-widget-types.js +0 -24
- package/lib/browser/diff-widget/memory-diff-widget-types.js.map +0 -1
- package/lib/browser/editable-widget/memory-editable-table-widget.d.ts +0 -65
- package/lib/browser/editable-widget/memory-editable-table-widget.d.ts.map +0 -1
- package/lib/browser/editable-widget/memory-editable-table-widget.js +0 -320
- package/lib/browser/editable-widget/memory-editable-table-widget.js.map +0 -1
- package/lib/browser/memory-inspector-frontend-contribution.d.ts +0 -47
- package/lib/browser/memory-inspector-frontend-contribution.d.ts.map +0 -1
- package/lib/browser/memory-inspector-frontend-contribution.js +0 -284
- package/lib/browser/memory-inspector-frontend-contribution.js.map +0 -1
- package/lib/browser/memory-inspector-frontend-module.d.ts +0 -22
- package/lib/browser/memory-inspector-frontend-module.d.ts.map +0 -1
- package/lib/browser/memory-inspector-frontend-module.js +0 -88
- package/lib/browser/memory-inspector-frontend-module.js.map +0 -1
- package/lib/browser/memory-provider/cdt-gdb-memory-provider.d.ts +0 -36
- package/lib/browser/memory-provider/cdt-gdb-memory-provider.d.ts.map +0 -1
- package/lib/browser/memory-provider/cdt-gdb-memory-provider.js +0 -132
- package/lib/browser/memory-provider/cdt-gdb-memory-provider.js.map +0 -1
- package/lib/browser/memory-provider/memory-provider-service.d.ts +0 -37
- package/lib/browser/memory-provider/memory-provider-service.d.ts.map +0 -1
- package/lib/browser/memory-provider/memory-provider-service.js +0 -94
- package/lib/browser/memory-provider/memory-provider-service.js.map +0 -1
- package/lib/browser/memory-provider/memory-provider.d.ts +0 -66
- package/lib/browser/memory-provider/memory-provider.d.ts.map +0 -1
- package/lib/browser/memory-provider/memory-provider.js +0 -89
- package/lib/browser/memory-provider/memory-provider.js.map +0 -1
- package/lib/browser/memory-provider/memory-provider.spec.d.ts +0 -17
- package/lib/browser/memory-provider/memory-provider.spec.d.ts.map +0 -1
- package/lib/browser/memory-provider/memory-provider.spec.js +0 -24
- package/lib/browser/memory-provider/memory-provider.spec.js.map +0 -1
- package/lib/browser/memory-widget/memory-options-widget.d.ts +0 -137
- package/lib/browser/memory-widget/memory-options-widget.d.ts.map +0 -1
- package/lib/browser/memory-widget/memory-options-widget.js +0 -557
- package/lib/browser/memory-widget/memory-options-widget.js.map +0 -1
- package/lib/browser/memory-widget/memory-table-widget.d.ts +0 -147
- package/lib/browser/memory-widget/memory-table-widget.d.ts.map +0 -1
- package/lib/browser/memory-widget/memory-table-widget.js +0 -481
- package/lib/browser/memory-widget/memory-table-widget.js.map +0 -1
- package/lib/browser/memory-widget/memory-widget.d.ts +0 -34
- package/lib/browser/memory-widget/memory-widget.d.ts.map +0 -1
- package/lib/browser/memory-widget/memory-widget.js +0 -105
- package/lib/browser/memory-widget/memory-widget.js.map +0 -1
- package/lib/browser/register-widget/register-filter-service.d.ts +0 -43
- package/lib/browser/register-widget/register-filter-service.d.ts.map +0 -1
- package/lib/browser/register-widget/register-filter-service.js +0 -74
- package/lib/browser/register-widget/register-filter-service.js.map +0 -1
- package/lib/browser/register-widget/register-options-widget.d.ts +0 -82
- package/lib/browser/register-widget/register-options-widget.d.ts.map +0 -1
- package/lib/browser/register-widget/register-options-widget.js +0 -331
- package/lib/browser/register-widget/register-options-widget.js.map +0 -1
- package/lib/browser/register-widget/register-table-widget.d.ts +0 -78
- package/lib/browser/register-widget/register-table-widget.d.ts.map +0 -1
- package/lib/browser/register-widget/register-table-widget.js +0 -224
- package/lib/browser/register-widget/register-table-widget.js.map +0 -1
- package/lib/browser/register-widget/register-widget-types.d.ts +0 -30
- package/lib/browser/register-widget/register-widget-types.d.ts.map +0 -1
- package/lib/browser/register-widget/register-widget-types.js +0 -36
- package/lib/browser/register-widget/register-widget-types.js.map +0 -1
- package/lib/browser/utils/memory-commands.d.ts +0 -28
- package/lib/browser/utils/memory-commands.d.ts.map +0 -1
- package/lib/browser/utils/memory-commands.js +0 -68
- package/lib/browser/utils/memory-commands.js.map +0 -1
- package/lib/browser/utils/memory-hover-renderer.d.ts +0 -34
- package/lib/browser/utils/memory-hover-renderer.d.ts.map +0 -1
- package/lib/browser/utils/memory-hover-renderer.js +0 -104
- package/lib/browser/utils/memory-hover-renderer.js.map +0 -1
- package/lib/browser/utils/memory-recents.d.ts +0 -28
- package/lib/browser/utils/memory-recents.d.ts.map +0 -1
- package/lib/browser/utils/memory-recents.js +0 -53
- package/lib/browser/utils/memory-recents.js.map +0 -1
- package/lib/browser/utils/memory-widget-components.d.ts +0 -59
- package/lib/browser/utils/memory-widget-components.d.ts.map +0 -1
- package/lib/browser/utils/memory-widget-components.js +0 -71
- package/lib/browser/utils/memory-widget-components.js.map +0 -1
- package/lib/browser/utils/memory-widget-manager.d.ts +0 -51
- package/lib/browser/utils/memory-widget-manager.d.ts.map +0 -1
- package/lib/browser/utils/memory-widget-manager.js +0 -175
- package/lib/browser/utils/memory-widget-manager.js.map +0 -1
- package/lib/browser/utils/memory-widget-utils.d.ts +0 -114
- package/lib/browser/utils/memory-widget-utils.d.ts.map +0 -1
- package/lib/browser/utils/memory-widget-utils.js +0 -43
- package/lib/browser/utils/memory-widget-utils.js.map +0 -1
- package/lib/browser/utils/memory-widget-variable-utils.d.ts +0 -58
- package/lib/browser/utils/memory-widget-variable-utils.d.ts.map +0 -1
- package/lib/browser/utils/memory-widget-variable-utils.js +0 -145
- package/lib/browser/utils/memory-widget-variable-utils.js.map +0 -1
- package/lib/browser/utils/multi-select-bar.d.ts +0 -32
- package/lib/browser/utils/multi-select-bar.d.ts.map +0 -1
- package/lib/browser/utils/multi-select-bar.js +0 -36
- package/lib/browser/utils/multi-select-bar.js.map +0 -1
- package/lib/browser/wrapper-widgets/memory-dock-panel.d.ts +0 -25
- package/lib/browser/wrapper-widgets/memory-dock-panel.d.ts.map +0 -1
- package/lib/browser/wrapper-widgets/memory-dock-panel.js +0 -49
- package/lib/browser/wrapper-widgets/memory-dock-panel.js.map +0 -1
- package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.d.ts +0 -24
- package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.d.ts.map +0 -1
- package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.js +0 -50
- package/lib/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.js.map +0 -1
- package/lib/browser/wrapper-widgets/memory-layout-widget.d.ts +0 -52
- package/lib/browser/wrapper-widgets/memory-layout-widget.d.ts.map +0 -1
- package/lib/browser/wrapper-widgets/memory-layout-widget.js +0 -178
- package/lib/browser/wrapper-widgets/memory-layout-widget.js.map +0 -1
- package/lib/common/util.d.ts +0 -22
- package/lib/common/util.d.ts.map +0 -1
- package/lib/common/util.js +0 -32
- package/lib/common/util.js.map +0 -1
- package/lib/common/utils.spec.d.ts +0 -17
- package/lib/common/utils.spec.d.ts.map +0 -1
- package/lib/common/utils.spec.js +0 -47
- package/lib/common/utils.spec.js.map +0 -1
|
@@ -1,284 +0,0 @@
|
|
|
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
|
-
exports.DebugFrontendContribution = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
const frontend_application_state_1 = require("@theia/core/lib/browser/frontend-application-state");
|
|
22
|
-
const color_1 = require("@theia/core/lib/common/color");
|
|
23
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
|
-
const debug_console_items_1 = require("@theia/debug/lib/browser/console/debug-console-items");
|
|
25
|
-
const debug_frontend_application_contribution_1 = require("@theia/debug/lib/browser/debug-frontend-application-contribution");
|
|
26
|
-
const debug_variables_widget_1 = require("@theia/debug/lib/browser/view/debug-variables-widget");
|
|
27
|
-
const memory_editable_table_widget_1 = require("./editable-widget/memory-editable-table-widget");
|
|
28
|
-
const memory_provider_service_1 = require("./memory-provider/memory-provider-service");
|
|
29
|
-
const memory_table_widget_1 = require("./memory-widget/memory-table-widget");
|
|
30
|
-
const register_table_widget_1 = require("./register-widget/register-table-widget");
|
|
31
|
-
const memory_commands_1 = require("./utils/memory-commands");
|
|
32
|
-
const memory_widget_manager_1 = require("./utils/memory-widget-manager");
|
|
33
|
-
const memory_dock_panel_1 = require("./wrapper-widgets/memory-dock-panel");
|
|
34
|
-
const memory_layout_widget_1 = require("./wrapper-widgets/memory-layout-widget");
|
|
35
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
36
|
-
const long_1 = tslib_1.__importDefault(require("long"));
|
|
37
|
-
const ONE_HALF_OPACITY = 0.5;
|
|
38
|
-
let DebugFrontendContribution = class DebugFrontendContribution extends browser_1.AbstractViewContribution {
|
|
39
|
-
constructor() {
|
|
40
|
-
super({
|
|
41
|
-
widgetId: memory_layout_widget_1.MemoryLayoutWidget.ID,
|
|
42
|
-
widgetName: memory_layout_widget_1.MemoryLayoutWidget.LABEL,
|
|
43
|
-
defaultWidgetOptions: {
|
|
44
|
-
area: 'right',
|
|
45
|
-
},
|
|
46
|
-
toggleCommandId: memory_commands_1.MemoryCommand.id,
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
init() {
|
|
50
|
-
this.stateService.reachedState('initialized_layout').then(() => {
|
|
51
|
-
// Close leftover widgets from previous sessions.
|
|
52
|
-
this.memoryWidgetManager.availableWidgets.forEach(widget => {
|
|
53
|
-
if (!(widget.parent instanceof memory_dock_panel_1.MemoryDockPanel)) {
|
|
54
|
-
widget.close();
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
async initializeLayout() {
|
|
60
|
-
await this.openView({ activate: false });
|
|
61
|
-
}
|
|
62
|
-
registerCommands(registry) {
|
|
63
|
-
super.registerCommands(registry);
|
|
64
|
-
registry.registerCommand(memory_commands_1.ViewVariableInMemoryCommand, {
|
|
65
|
-
execute: async () => {
|
|
66
|
-
const { selectedVariable } = this.debugContribution;
|
|
67
|
-
const referenceText = this.memoryProvider.formatVariableReference(selectedVariable);
|
|
68
|
-
if (referenceText) {
|
|
69
|
-
await this.openMemoryWidgetAt(referenceText);
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
isVisible: () => {
|
|
73
|
-
const { selectedVariable } = this.debugContribution;
|
|
74
|
-
return Boolean(this.memoryProvider.supportsVariableReferenceSyntax(selectedVariable) && this.memoryProvider.formatVariableReference(selectedVariable));
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
registry.registerCommand(memory_commands_1.ViewVariableInRegisterViewCommand, {
|
|
78
|
-
execute: async () => {
|
|
79
|
-
var _a;
|
|
80
|
-
const name = (_a = this.debugContribution.selectedVariable) === null || _a === void 0 ? void 0 : _a.name;
|
|
81
|
-
if (name) {
|
|
82
|
-
await this.openRegisterWidgetWithReg(name);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
isVisible: () => {
|
|
86
|
-
var _a, _b;
|
|
87
|
-
let { selectedVariable: currentLevel } = this.debugContribution;
|
|
88
|
-
if (!currentLevel) {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
// Make sure it looks like it has a numerical value.
|
|
92
|
-
try {
|
|
93
|
-
BigInt(currentLevel.value);
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
while (currentLevel.parent instanceof debug_console_items_1.DebugVariable) {
|
|
99
|
-
currentLevel = currentLevel.parent;
|
|
100
|
-
}
|
|
101
|
-
return currentLevel.parent instanceof debug_console_items_1.DebugScope && ((_b = (_a = currentLevel.parent) === null || _a === void 0 ? void 0 : _a['raw']) === null || _b === void 0 ? void 0 : _b.name) === 'Registers';
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
registry.registerCommand(memory_commands_1.FollowPointerDebugCommand, {
|
|
105
|
-
isVisible: () => { var _a; return !!this.isPointer((_a = this.debugContribution.selectedVariable) === null || _a === void 0 ? void 0 : _a.type); },
|
|
106
|
-
isEnabled: () => { var _a; return !!this.isPointer((_a = this.debugContribution.selectedVariable) === null || _a === void 0 ? void 0 : _a.type); },
|
|
107
|
-
execute: async () => {
|
|
108
|
-
var _a;
|
|
109
|
-
const name = (_a = this.debugContribution.selectedVariable) === null || _a === void 0 ? void 0 : _a.name;
|
|
110
|
-
if (name) {
|
|
111
|
-
await this.openMemoryWidgetAt(name);
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
});
|
|
115
|
-
registry.registerCommand(memory_commands_1.ResetModifiedCellCommand, {
|
|
116
|
-
isEnabled: (widgetToActOn, address) => long_1.default.isLong(address) && widgetToActOn instanceof memory_editable_table_widget_1.MemoryEditableTableWidget,
|
|
117
|
-
isVisible: (widgetToActOn, address) => long_1.default.isLong(address) && widgetToActOn instanceof memory_editable_table_widget_1.MemoryEditableTableWidget,
|
|
118
|
-
execute: (widgetToActOn, address) => widgetToActOn.resetModifiedValue(address),
|
|
119
|
-
});
|
|
120
|
-
registry.registerCommand(memory_commands_1.FollowPointerTableCommand, {
|
|
121
|
-
isEnabled: (widgetToActOn, address, variable) => widgetToActOn instanceof memory_table_widget_1.MemoryTableWidget &&
|
|
122
|
-
this.isPointer(variable === null || variable === void 0 ? void 0 : variable.type),
|
|
123
|
-
isVisible: (widgetToActOn, address, variable) => widgetToActOn instanceof memory_table_widget_1.MemoryTableWidget &&
|
|
124
|
-
this.isPointer(variable === null || variable === void 0 ? void 0 : variable.type),
|
|
125
|
-
execute: (widgetToActOn, address, variable) => {
|
|
126
|
-
if (variable === null || variable === void 0 ? void 0 : variable.name) {
|
|
127
|
-
widgetToActOn.optionsWidget.setAddressAndGo(variable.name);
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
});
|
|
131
|
-
registry.registerCommand(memory_commands_1.CreateNewMemoryViewCommand, {
|
|
132
|
-
isEnabled: w => this.withWidget(() => true, w),
|
|
133
|
-
isVisible: w => this.withWidget(() => true, w),
|
|
134
|
-
execute: () => this.memoryWidgetManager.createNewMemoryWidget(),
|
|
135
|
-
});
|
|
136
|
-
registry.registerCommand(memory_commands_1.CreateNewRegisterViewCommand, {
|
|
137
|
-
isEnabled: w => this.withWidget(() => true, w),
|
|
138
|
-
isVisible: w => this.withWidget(() => true, w),
|
|
139
|
-
execute: () => this.memoryWidgetManager.createNewMemoryWidget('register'),
|
|
140
|
-
});
|
|
141
|
-
registry.registerCommand(memory_commands_1.RegisterSetVariableCommand, {
|
|
142
|
-
isEnabled: (widgetToActOn, dVar) => widgetToActOn instanceof register_table_widget_1.RegisterTableWidget &&
|
|
143
|
-
dVar && dVar.supportSetVariable,
|
|
144
|
-
isVisible: (widgetToActOn, dVar) => widgetToActOn instanceof register_table_widget_1.RegisterTableWidget &&
|
|
145
|
-
dVar && dVar.supportSetVariable,
|
|
146
|
-
execute: (widgetToActOn, dVar) => dVar && widgetToActOn.handleSetValue(dVar),
|
|
147
|
-
});
|
|
148
|
-
registry.registerCommand(memory_commands_1.ToggleDiffSelectWidgetVisibilityCommand, {
|
|
149
|
-
isVisible: widget => this.withWidget(() => this.memoryWidgetManager.canCompare, widget),
|
|
150
|
-
execute: (widget) => {
|
|
151
|
-
widget.toggleComparisonVisibility();
|
|
152
|
-
},
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
isPointer(type) {
|
|
156
|
-
return !!(type === null || type === void 0 ? void 0 : type.includes('*'));
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* @param {string} addressReference Should be the exact string to be used in the address bar. I.e. it must resolve to an address value.
|
|
160
|
-
*/
|
|
161
|
-
async openMemoryWidgetAt(addressReference) {
|
|
162
|
-
await this.openView({ activate: false });
|
|
163
|
-
const newWidget = await this.memoryWidgetManager.createNewMemoryWidget();
|
|
164
|
-
await this.shell.activateWidget(newWidget.id);
|
|
165
|
-
if (newWidget) {
|
|
166
|
-
newWidget.optionsWidget.setAddressAndGo(addressReference);
|
|
167
|
-
}
|
|
168
|
-
return newWidget;
|
|
169
|
-
}
|
|
170
|
-
async openRegisterWidgetWithReg(name) {
|
|
171
|
-
await this.openView({ activate: false });
|
|
172
|
-
const newWidget = await this.memoryWidgetManager.createNewMemoryWidget('register');
|
|
173
|
-
await this.shell.activateWidget(newWidget.id);
|
|
174
|
-
if (newWidget) {
|
|
175
|
-
newWidget.optionsWidget.setRegAndUpdate(name);
|
|
176
|
-
}
|
|
177
|
-
return newWidget;
|
|
178
|
-
}
|
|
179
|
-
withWidget(fn, widget = this.tryGetWidget()) {
|
|
180
|
-
if (widget instanceof memory_layout_widget_1.MemoryLayoutWidget && widget.id === memory_layout_widget_1.MemoryLayoutWidget.ID) {
|
|
181
|
-
return fn(widget);
|
|
182
|
-
}
|
|
183
|
-
return false;
|
|
184
|
-
}
|
|
185
|
-
registerMenus(registry) {
|
|
186
|
-
super.registerMenus(registry);
|
|
187
|
-
const registerMenuActions = (menuPath, ...commands) => {
|
|
188
|
-
for (const [index, command] of commands.entries()) {
|
|
189
|
-
registry.registerMenuAction(menuPath, {
|
|
190
|
-
commandId: command.id,
|
|
191
|
-
label: command.label,
|
|
192
|
-
icon: command.iconClass,
|
|
193
|
-
order: String.fromCharCode('a'.charCodeAt(0) + index),
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
registry.registerMenuAction(debug_variables_widget_1.DebugVariablesWidget.WATCH_MENU, { commandId: memory_commands_1.ViewVariableInMemoryCommand.id, label: memory_commands_1.ViewVariableInMemoryCommand.label });
|
|
198
|
-
registry.registerMenuAction(debug_variables_widget_1.DebugVariablesWidget.WATCH_MENU, { commandId: memory_commands_1.FollowPointerDebugCommand.id, label: memory_commands_1.FollowPointerDebugCommand.label });
|
|
199
|
-
registry.registerMenuAction(debug_variables_widget_1.DebugVariablesWidget.WATCH_MENU, { commandId: memory_commands_1.ViewVariableInRegisterViewCommand.id, label: memory_commands_1.ViewVariableInRegisterViewCommand.label });
|
|
200
|
-
registry.registerMenuAction(memory_editable_table_widget_1.MemoryEditableTableWidget.CONTEXT_MENU, { commandId: memory_commands_1.ResetModifiedCellCommand.id, label: memory_commands_1.ResetModifiedCellCommand.label });
|
|
201
|
-
registry.registerMenuAction(memory_table_widget_1.MemoryTableWidget.CONTEXT_MENU, { commandId: memory_commands_1.FollowPointerTableCommand.id, label: memory_commands_1.FollowPointerTableCommand.label });
|
|
202
|
-
registerMenuActions(register_table_widget_1.RegisterTableWidget.CONTEXT_MENU, memory_commands_1.RegisterSetVariableCommand);
|
|
203
|
-
}
|
|
204
|
-
registerToolbarItems(toolbarRegistry) {
|
|
205
|
-
toolbarRegistry.registerItem({
|
|
206
|
-
id: memory_commands_1.CreateNewMemoryViewCommand.id,
|
|
207
|
-
command: memory_commands_1.CreateNewMemoryViewCommand.id,
|
|
208
|
-
tooltip: memory_commands_1.CreateNewMemoryViewCommand.label,
|
|
209
|
-
priority: -2,
|
|
210
|
-
});
|
|
211
|
-
toolbarRegistry.registerItem({
|
|
212
|
-
id: memory_commands_1.CreateNewRegisterViewCommand.id,
|
|
213
|
-
command: memory_commands_1.CreateNewRegisterViewCommand.id,
|
|
214
|
-
tooltip: memory_commands_1.CreateNewRegisterViewCommand.label,
|
|
215
|
-
priority: -1,
|
|
216
|
-
});
|
|
217
|
-
toolbarRegistry.registerItem({
|
|
218
|
-
id: memory_commands_1.ToggleDiffSelectWidgetVisibilityCommand.id,
|
|
219
|
-
command: memory_commands_1.ToggleDiffSelectWidgetVisibilityCommand.id,
|
|
220
|
-
tooltip: nls_1.nls.localize('theia/memory-inspector/toggleComparisonWidgetVisibility', 'Toggle Comparison Widget Visibility'),
|
|
221
|
-
priority: -3,
|
|
222
|
-
onDidChange: this.memoryWidgetManager.onChanged,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
registerColors(colorRegistry) {
|
|
226
|
-
colorRegistry.register({
|
|
227
|
-
id: 'memoryDiff.removedTextBackground',
|
|
228
|
-
defaults: {
|
|
229
|
-
dark: color_1.Color.transparent('diffEditor.removedTextBackground', ONE_HALF_OPACITY),
|
|
230
|
-
light: color_1.Color.transparent('diffEditor.removedTextBackground', ONE_HALF_OPACITY),
|
|
231
|
-
},
|
|
232
|
-
description: 'A less opaque diff color for use in the Memory Inspector where various overlays may me in place at once.',
|
|
233
|
-
}, {
|
|
234
|
-
id: 'memoryDiff.insertedTextBackground',
|
|
235
|
-
defaults: {
|
|
236
|
-
dark: color_1.Color.transparent('diffEditor.insertedTextBackground', ONE_HALF_OPACITY),
|
|
237
|
-
light: color_1.Color.transparent('diffEditor.insertedTextBackground', ONE_HALF_OPACITY),
|
|
238
|
-
},
|
|
239
|
-
description: 'A less opaque diff color for use in the Memory Inspector where various overlays may me in place at once.',
|
|
240
|
-
}, {
|
|
241
|
-
id: 'memoryInspector.focusBorder',
|
|
242
|
-
defaults: {
|
|
243
|
-
dark: color_1.Color.transparent('focusBorder', ONE_HALF_OPACITY),
|
|
244
|
-
light: color_1.Color.transparent('focusBorder', ONE_HALF_OPACITY),
|
|
245
|
-
},
|
|
246
|
-
description: 'A less opaque focus border color for use in the Memory Inspector where several overlays may be in place at once.',
|
|
247
|
-
}, {
|
|
248
|
-
id: 'memoryInspector.foreground',
|
|
249
|
-
defaults: {
|
|
250
|
-
dark: color_1.Color.transparent('editor.foreground', ONE_HALF_OPACITY),
|
|
251
|
-
light: color_1.Color.transparent('editor.foreground', ONE_HALF_OPACITY),
|
|
252
|
-
},
|
|
253
|
-
description: 'A less opaque foreground text style for use in the Memory Inspector',
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
exports.DebugFrontendContribution = DebugFrontendContribution;
|
|
258
|
-
tslib_1.__decorate([
|
|
259
|
-
(0, inversify_1.inject)(debug_frontend_application_contribution_1.DebugFrontendApplicationContribution),
|
|
260
|
-
tslib_1.__metadata("design:type", debug_frontend_application_contribution_1.DebugFrontendApplicationContribution)
|
|
261
|
-
], DebugFrontendContribution.prototype, "debugContribution", void 0);
|
|
262
|
-
tslib_1.__decorate([
|
|
263
|
-
(0, inversify_1.inject)(memory_widget_manager_1.MemoryWidgetManager),
|
|
264
|
-
tslib_1.__metadata("design:type", memory_widget_manager_1.MemoryWidgetManager)
|
|
265
|
-
], DebugFrontendContribution.prototype, "memoryWidgetManager", void 0);
|
|
266
|
-
tslib_1.__decorate([
|
|
267
|
-
(0, inversify_1.inject)(frontend_application_state_1.FrontendApplicationStateService),
|
|
268
|
-
tslib_1.__metadata("design:type", frontend_application_state_1.FrontendApplicationStateService)
|
|
269
|
-
], DebugFrontendContribution.prototype, "stateService", void 0);
|
|
270
|
-
tslib_1.__decorate([
|
|
271
|
-
(0, inversify_1.inject)(memory_provider_service_1.MemoryProviderService),
|
|
272
|
-
tslib_1.__metadata("design:type", memory_provider_service_1.MemoryProviderService)
|
|
273
|
-
], DebugFrontendContribution.prototype, "memoryProvider", void 0);
|
|
274
|
-
tslib_1.__decorate([
|
|
275
|
-
(0, inversify_1.postConstruct)(),
|
|
276
|
-
tslib_1.__metadata("design:type", Function),
|
|
277
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
278
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
279
|
-
], DebugFrontendContribution.prototype, "init", null);
|
|
280
|
-
exports.DebugFrontendContribution = DebugFrontendContribution = tslib_1.__decorate([
|
|
281
|
-
(0, inversify_1.injectable)(),
|
|
282
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
283
|
-
], DebugFrontendContribution);
|
|
284
|
-
//# sourceMappingURL=memory-inspector-frontend-contribution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-inspector-frontend-contribution.js","sourceRoot":"","sources":["../../src/browser/memory-inspector-frontend-contribution.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;AAElF,qDAA4G;AAG5G,mGAAqG;AAGrG,wDAAqD;AACrD,4DAAiF;AACjF,8FAAiG;AACjG,8HAAwH;AACxH,iGAA4F;AAC5F,iGAA2F;AAC3F,uFAAkF;AAClF,6EAAwE;AAExE,mFAA8E;AAE9E,6DAGiC;AACjC,yEAAoE;AAEpE,2EAAsE;AACtE,iFAA4E;AAC5E,oDAAiD;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qEAAqE;SACrF,CACJ,CAAC;IACN,CAAC;CACJ,CAAA;AA7PY,8DAAyB;AAI+B;IAAhE,IAAA,kBAAM,EAAC,8EAAoC,CAAC;sCAAuC,8EAAoC;oEAAC;AACzE;IAA/C,IAAA,kBAAM,EAAC,2CAAmB,CAAC;sCAAyC,2CAAmB;sEAAC;AAC7B;IAA3D,IAAA,kBAAM,EAAC,4DAA+B,CAAC;sCAAkC,4DAA+B;+DAAC;AACxD;IAAjD,IAAA,kBAAM,EAAC,+CAAqB,CAAC;sCAAoC,+CAAqB;iEAAC;AAcxF;IADC,IAAA,yBAAa,GAAE;;;;qDAUf;oCA9BQ,yBAAyB;IADrC,IAAA,sBAAU,GAAE;;GACA,yBAAyB,CA6PrC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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 '../../src/browser/register-widget/register-widget.css';
|
|
17
|
-
import '../../src/browser/style/index.css';
|
|
18
|
-
import '../../src/browser/utils/multi-select-bar.css';
|
|
19
|
-
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
20
|
-
declare const _default: ContainerModule;
|
|
21
|
-
export default _default;
|
|
22
|
-
//# sourceMappingURL=memory-inspector-frontend-module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-inspector-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/memory-inspector-frontend-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,uDAAuD,CAAC;AAC/D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,8CAA8C,CAAC;AAKtD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAsB/D,wBAwEG"}
|
|
@@ -1,88 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=memory-inspector-frontend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-inspector-frontend-module.js","sourceRoot":"","sources":["../../src/browser/memory-inspector-frontend-module.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;AAElF,iEAA+D;AAC/D,6CAA2C;AAC3C,wDAAsD;AACtD,sCAAuD;AACvD,qDAA+G;AAC/G,2GAA2F;AAC3F,mFAA0F;AAC1F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c,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QACnD,EAAE,EAAE,2CAAgB,CAAC,EAAE;QACvB,YAAY,EAAE,CAAC,OAA6B,EAAoB,EAAE,CAAC,4BAAY;aAC1E,YAAY,CACT,SAAS,EACT,oDAAuB,EACvB,gDAAqB,EACrB,0CAAoB,EACpB,OAAO,CACV;KACR,CAAC,CAAC,CAAC;IAEJ,IAAI,CAAC,uBAAa,CAAC,CAAC,cAAc,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QACnD,EAAE,EAAE,sCAAc,CAAC,EAAE;QACrB,YAAY,EAAE,CAAC,OAA8B,EAAkB,EAAE,CAAC,sCAAc;aAC3E,eAAe,CACZ,SAAS,EACT,+CAAqB,EACrB,2CAAmB,EACnB,2CAAqB,EACrB,OAAO,CACV,CAAC,GAAG,CAAiB,4BAAY,CAAC;KAC1C,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=cdt-gdb-memory-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cdt-gdb-memory-provider.d.ts","sourceRoot":"","sources":["../../../src/browser/memory-provider/cdt-gdb-memory-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAc,aAAa,EAAE,MAAM,sDAAsD,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D;;;;;GAKG;AAEH;;;GAGG;AACH,qBACa,oBAAqB,SAAQ,sBAAsB;IAE5D,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO;IAI1B,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IA2D5E,+BAA+B,CAAC,OAAO,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,aAAa,GAAG,OAAO;IAa7F,uBAAuB,CAAC,OAAO,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,aAAa,GAAG,MAAM;CAkBhG"}
|
|
@@ -1,132 +0,0 @@
|
|
|
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
|
-
exports.CDTGDBMemoryProvider = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const debug_console_items_1 = require("@theia/debug/lib/browser/console/debug-console-items");
|
|
22
|
-
const util_1 = require("../../common/util");
|
|
23
|
-
const memory_provider_1 = require("./memory-provider");
|
|
24
|
-
/**
|
|
25
|
-
* @file this file exists to show the customizations possible for specific debug adapters. Within the confines of the DebugAdapterProtocol, different adapters can behave
|
|
26
|
-
* 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)
|
|
27
|
-
* 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
|
|
28
|
-
* to enhance the base functionality of the Memory Inspector by tapping into specifics of known adapters.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Read memory through the current debug session, using the cdt-gdb-adapter
|
|
32
|
-
* extension to read memory.
|
|
33
|
-
*/
|
|
34
|
-
let CDTGDBMemoryProvider = class CDTGDBMemoryProvider extends memory_provider_1.AbstractMemoryProvider {
|
|
35
|
-
canHandle(session) {
|
|
36
|
-
return session.configuration.type === 'gdb';
|
|
37
|
-
}
|
|
38
|
-
async getLocals(session) {
|
|
39
|
-
if (session === undefined) {
|
|
40
|
-
console.warn('No active debug session.');
|
|
41
|
-
return [];
|
|
42
|
-
}
|
|
43
|
-
const frame = session.currentFrame;
|
|
44
|
-
if (frame === undefined) {
|
|
45
|
-
throw new Error('No active stack frame.');
|
|
46
|
-
}
|
|
47
|
-
const ranges = [];
|
|
48
|
-
const scopes = await frame.getScopes();
|
|
49
|
-
const scopesWithoutRegisters = scopes.filter(x => x.render() !== 'Registers');
|
|
50
|
-
for (const scope of scopesWithoutRegisters) {
|
|
51
|
-
const variables = await scope.getElements();
|
|
52
|
-
for (const v of variables) {
|
|
53
|
-
if (v instanceof debug_console_items_1.DebugVariable) {
|
|
54
|
-
const addrExp = `&${v.name}`;
|
|
55
|
-
const sizeExp = `sizeof(${v.name})`;
|
|
56
|
-
const addrResp = await session.sendRequest('evaluate', {
|
|
57
|
-
expression: addrExp,
|
|
58
|
-
context: 'watch',
|
|
59
|
-
frameId: frame.raw.id,
|
|
60
|
-
}).catch(e => { console.warn(`Failed to evaluate ${addrExp}. Corresponding variable will be omitted from Memory Inspector display.`, e); });
|
|
61
|
-
if (!addrResp) {
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
const sizeResp = await session.sendRequest('evaluate', {
|
|
65
|
-
expression: sizeExp,
|
|
66
|
-
context: 'watch',
|
|
67
|
-
frameId: frame.raw.id,
|
|
68
|
-
}).catch(e => { console.warn(`Failed to evaluate ${sizeExp}. Corresponding variable will be omitted from Memory Inspector display.`, e); });
|
|
69
|
-
if (!sizeResp) {
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
// Make sure the address is in the format we expect.
|
|
73
|
-
const addressPart = /0x[0-9a-f]+/i.exec(addrResp.body.result);
|
|
74
|
-
if (!addressPart) {
|
|
75
|
-
continue;
|
|
76
|
-
}
|
|
77
|
-
if (!/^[0-9]+$/.test(sizeResp.body.result)) {
|
|
78
|
-
continue;
|
|
79
|
-
}
|
|
80
|
-
const size = parseInt(sizeResp.body.result);
|
|
81
|
-
const address = (0, util_1.hexStrToUnsignedLong)(addressPart[0]);
|
|
82
|
-
const pastTheEndAddress = address.add(size);
|
|
83
|
-
ranges.push({
|
|
84
|
-
name: v.name,
|
|
85
|
-
address,
|
|
86
|
-
pastTheEndAddress,
|
|
87
|
-
type: v.type,
|
|
88
|
-
value: v.value,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return ranges;
|
|
94
|
-
}
|
|
95
|
-
supportsVariableReferenceSyntax(session, currentLevel) {
|
|
96
|
-
if (this.canHandle(session)) {
|
|
97
|
-
if (!currentLevel) {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
while (currentLevel.parent instanceof debug_console_items_1.DebugVariable) {
|
|
101
|
-
currentLevel = currentLevel.parent;
|
|
102
|
-
}
|
|
103
|
-
return currentLevel.parent instanceof debug_console_items_1.DebugScope && currentLevel.parent['raw'].name === 'Local';
|
|
104
|
-
}
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
formatVariableReference(session, currentLevel) {
|
|
108
|
-
if (currentLevel && this.canHandle(session)) {
|
|
109
|
-
let { name } = currentLevel;
|
|
110
|
-
while (currentLevel.parent instanceof debug_console_items_1.DebugVariable) {
|
|
111
|
-
const separator = name.startsWith('[') ? '' : '.';
|
|
112
|
-
currentLevel = currentLevel.parent;
|
|
113
|
-
if (name.startsWith(`*${currentLevel.name}.`)) { // Theia has added a layer of pointer dereferencing
|
|
114
|
-
name = name.replace(`*${currentLevel.name}.`, `(*${currentLevel.name})->`);
|
|
115
|
-
}
|
|
116
|
-
else if (name.startsWith(`*${currentLevel.name}`)) {
|
|
117
|
-
// that's fine, it's what you clicked on and probably what you want to see.
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
name = `${currentLevel.name}${separator}${name}`;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return `&(${name})`;
|
|
124
|
-
}
|
|
125
|
-
return '';
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
exports.CDTGDBMemoryProvider = CDTGDBMemoryProvider;
|
|
129
|
-
exports.CDTGDBMemoryProvider = CDTGDBMemoryProvider = tslib_1.__decorate([
|
|
130
|
-
(0, inversify_1.injectable)()
|
|
131
|
-
], CDTGDBMemoryProvider);
|
|
132
|
-
//# sourceMappingURL=cdt-gdb-memory-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cdt-gdb-memory-provider.js","sourceRoot":"","sources":["../../../src/browser/memory-provider/cdt-gdb-memory-provider.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;AAElF,4DAA0D;AAC1D,8FAAiG;AAEjG,4CAAyD;AAEzD,uDAA2D;AAE3D;;;;;GAKG;AAEH;;;GAGG;AAEI,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,wCAAsB;IAE5D,SAAS,CAAC,OAAqB;QAC3B,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,KAAK,CAAC;IAChD,CAAC;IAEQ,KAAK,CAAC,SAAS,CAAC,OAAiC;QACtD,IAAI,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