@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,102 +1,102 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (C) 2021 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
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.MemoryProviderService = void 0;
|
|
28
|
-
const core_1 = require("@theia/core");
|
|
29
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
-
const debug_session_manager_1 = require("@theia/debug/lib/browser/debug-session-manager");
|
|
31
|
-
const memory_provider_1 = require("./memory-provider");
|
|
32
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
33
|
-
let MemoryProviderService = class MemoryProviderService {
|
|
34
|
-
readMemory(readMemoryArguments) {
|
|
35
|
-
const readError = nls_1.nls.localize('theia/memory-inspector/provider/readError', 'Cannot read memory. No active debug session.');
|
|
36
|
-
const session = this.getSession(readError);
|
|
37
|
-
if (!session.capabilities.supportsReadMemoryRequest) {
|
|
38
|
-
throw new Error('Cannot read memory. The current session does not support the request.');
|
|
39
|
-
}
|
|
40
|
-
const provider = this.getProvider(session);
|
|
41
|
-
return provider.readMemory(session, readMemoryArguments);
|
|
42
|
-
}
|
|
43
|
-
writeMemory(writeMemoryArguments) {
|
|
44
|
-
const writeError = nls_1.nls.localize('theia/memory-inspector/provider/writeError', 'Cannot write memory. No active debug session.');
|
|
45
|
-
const session = this.getSession(writeError);
|
|
46
|
-
if (!session.capabilities.supportsWriteMemoryRequest) {
|
|
47
|
-
throw new Error('Cannot write memory. The current session does not support the request.');
|
|
48
|
-
}
|
|
49
|
-
const provider = this.getProvider(session, 'writeMemory');
|
|
50
|
-
return provider.writeMemory(session, writeMemoryArguments);
|
|
51
|
-
}
|
|
52
|
-
getLocals() {
|
|
53
|
-
const localsError = nls_1.nls.localize('theia/memory-inspector/provider/localsError', 'Cannot read local variables. No active debug session.');
|
|
54
|
-
const session = this.getSession(localsError);
|
|
55
|
-
const provider = this.getProvider(session, 'getLocals');
|
|
56
|
-
return provider.getLocals(session);
|
|
57
|
-
}
|
|
58
|
-
supportsVariableReferenceSyntax(variable) {
|
|
59
|
-
if (!this.sessionManager.currentSession) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
const provider = this.getProvider(this.sessionManager.currentSession, 'supportsVariableReferenceSyntax');
|
|
63
|
-
return provider.supportsVariableReferenceSyntax(this.sessionManager.currentSession, variable);
|
|
64
|
-
}
|
|
65
|
-
formatVariableReference(variable) {
|
|
66
|
-
if (!this.sessionManager.currentSession) {
|
|
67
|
-
return '';
|
|
68
|
-
}
|
|
69
|
-
const provider = this.getProvider(this.sessionManager.currentSession, 'formatVariableReference');
|
|
70
|
-
return provider.formatVariableReference(this.sessionManager.currentSession, variable);
|
|
71
|
-
}
|
|
72
|
-
/** @throws with {@link message} if there is no active debug session. */
|
|
73
|
-
getSession(message) {
|
|
74
|
-
if (this.sessionManager.currentSession) {
|
|
75
|
-
return this.sessionManager.currentSession;
|
|
76
|
-
}
|
|
77
|
-
throw new Error(message);
|
|
78
|
-
}
|
|
79
|
-
getProvider(session, ensure) {
|
|
80
|
-
var _a;
|
|
81
|
-
return (_a = this.contributions.getContributions()
|
|
82
|
-
.find((candidate) => Boolean(!ensure || candidate[ensure]) && candidate.canHandle(session))) !== null && _a !== void 0 ? _a : this.defaultProvider;
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, inversify_1.inject)(debug_session_manager_1.DebugSessionManager),
|
|
87
|
-
__metadata("design:type", debug_session_manager_1.DebugSessionManager)
|
|
88
|
-
], MemoryProviderService.prototype, "sessionManager", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, inversify_1.inject)(memory_provider_1.DefaultMemoryProvider),
|
|
91
|
-
__metadata("design:type", memory_provider_1.DefaultMemoryProvider)
|
|
92
|
-
], MemoryProviderService.prototype, "defaultProvider", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, inversify_1.inject)(core_1.ContributionProvider),
|
|
95
|
-
(0, inversify_1.named)(memory_provider_1.MemoryProvider),
|
|
96
|
-
__metadata("design:type", Object)
|
|
97
|
-
], MemoryProviderService.prototype, "contributions", void 0);
|
|
98
|
-
MemoryProviderService = __decorate([
|
|
99
|
-
(0, inversify_1.injectable)()
|
|
100
|
-
], MemoryProviderService);
|
|
101
|
-
exports.MemoryProviderService = MemoryProviderService;
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (C) 2021 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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.MemoryProviderService = void 0;
|
|
28
|
+
const core_1 = require("@theia/core");
|
|
29
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
+
const debug_session_manager_1 = require("@theia/debug/lib/browser/debug-session-manager");
|
|
31
|
+
const memory_provider_1 = require("./memory-provider");
|
|
32
|
+
const nls_1 = require("@theia/core/lib/common/nls");
|
|
33
|
+
let MemoryProviderService = class MemoryProviderService {
|
|
34
|
+
readMemory(readMemoryArguments) {
|
|
35
|
+
const readError = nls_1.nls.localize('theia/memory-inspector/provider/readError', 'Cannot read memory. No active debug session.');
|
|
36
|
+
const session = this.getSession(readError);
|
|
37
|
+
if (!session.capabilities.supportsReadMemoryRequest) {
|
|
38
|
+
throw new Error('Cannot read memory. The current session does not support the request.');
|
|
39
|
+
}
|
|
40
|
+
const provider = this.getProvider(session);
|
|
41
|
+
return provider.readMemory(session, readMemoryArguments);
|
|
42
|
+
}
|
|
43
|
+
writeMemory(writeMemoryArguments) {
|
|
44
|
+
const writeError = nls_1.nls.localize('theia/memory-inspector/provider/writeError', 'Cannot write memory. No active debug session.');
|
|
45
|
+
const session = this.getSession(writeError);
|
|
46
|
+
if (!session.capabilities.supportsWriteMemoryRequest) {
|
|
47
|
+
throw new Error('Cannot write memory. The current session does not support the request.');
|
|
48
|
+
}
|
|
49
|
+
const provider = this.getProvider(session, 'writeMemory');
|
|
50
|
+
return provider.writeMemory(session, writeMemoryArguments);
|
|
51
|
+
}
|
|
52
|
+
getLocals() {
|
|
53
|
+
const localsError = nls_1.nls.localize('theia/memory-inspector/provider/localsError', 'Cannot read local variables. No active debug session.');
|
|
54
|
+
const session = this.getSession(localsError);
|
|
55
|
+
const provider = this.getProvider(session, 'getLocals');
|
|
56
|
+
return provider.getLocals(session);
|
|
57
|
+
}
|
|
58
|
+
supportsVariableReferenceSyntax(variable) {
|
|
59
|
+
if (!this.sessionManager.currentSession) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
const provider = this.getProvider(this.sessionManager.currentSession, 'supportsVariableReferenceSyntax');
|
|
63
|
+
return provider.supportsVariableReferenceSyntax(this.sessionManager.currentSession, variable);
|
|
64
|
+
}
|
|
65
|
+
formatVariableReference(variable) {
|
|
66
|
+
if (!this.sessionManager.currentSession) {
|
|
67
|
+
return '';
|
|
68
|
+
}
|
|
69
|
+
const provider = this.getProvider(this.sessionManager.currentSession, 'formatVariableReference');
|
|
70
|
+
return provider.formatVariableReference(this.sessionManager.currentSession, variable);
|
|
71
|
+
}
|
|
72
|
+
/** @throws with {@link message} if there is no active debug session. */
|
|
73
|
+
getSession(message) {
|
|
74
|
+
if (this.sessionManager.currentSession) {
|
|
75
|
+
return this.sessionManager.currentSession;
|
|
76
|
+
}
|
|
77
|
+
throw new Error(message);
|
|
78
|
+
}
|
|
79
|
+
getProvider(session, ensure) {
|
|
80
|
+
var _a;
|
|
81
|
+
return (_a = this.contributions.getContributions()
|
|
82
|
+
.find((candidate) => Boolean(!ensure || candidate[ensure]) && candidate.canHandle(session))) !== null && _a !== void 0 ? _a : this.defaultProvider;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, inversify_1.inject)(debug_session_manager_1.DebugSessionManager),
|
|
87
|
+
__metadata("design:type", debug_session_manager_1.DebugSessionManager)
|
|
88
|
+
], MemoryProviderService.prototype, "sessionManager", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, inversify_1.inject)(memory_provider_1.DefaultMemoryProvider),
|
|
91
|
+
__metadata("design:type", memory_provider_1.DefaultMemoryProvider)
|
|
92
|
+
], MemoryProviderService.prototype, "defaultProvider", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, inversify_1.inject)(core_1.ContributionProvider),
|
|
95
|
+
(0, inversify_1.named)(memory_provider_1.MemoryProvider),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], MemoryProviderService.prototype, "contributions", void 0);
|
|
98
|
+
MemoryProviderService = __decorate([
|
|
99
|
+
(0, inversify_1.injectable)()
|
|
100
|
+
], MemoryProviderService);
|
|
101
|
+
exports.MemoryProviderService = MemoryProviderService;
|
|
102
102
|
//# sourceMappingURL=memory-provider-service.js.map
|
|
@@ -1,66 +1,66 @@
|
|
|
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 { DebugProtocol } from '@vscode/debugprotocol';
|
|
19
|
-
import { Interfaces } from '../utils/memory-widget-utils';
|
|
20
|
-
import { VariableRange } from '../utils/memory-widget-variable-utils';
|
|
21
|
-
export declare const MemoryProvider: unique symbol;
|
|
22
|
-
/**
|
|
23
|
-
* Representation of a memory provider. It is only necessary to implement a new Memory Provider if the behavior of the Debug Adapter for a given session type
|
|
24
|
-
* deviates from the Debug Adapter Protocol. Otherwise, the DefaultMemoryProvider should handle standard DAP requests and responses.
|
|
25
|
-
*
|
|
26
|
-
* Specific peculiarities that might require special handling include: restrictions on the formatting of memory location identifiers (only hex numbers, e.g.)
|
|
27
|
-
* or deviations from the DAP in the format of the response to a given request.
|
|
28
|
-
*/
|
|
29
|
-
export interface MemoryProvider {
|
|
30
|
-
/**
|
|
31
|
-
* @param session
|
|
32
|
-
* @return whether the given MemoryProvider can handle memory reading / writing for a session of the type submitted.
|
|
33
|
-
*/
|
|
34
|
-
canHandle(session: DebugSession): boolean;
|
|
35
|
-
readMemory(session: DebugSession, readMemoryArguments: DebugProtocol.ReadMemoryArguments): Promise<Interfaces.MemoryReadResult>;
|
|
36
|
-
writeMemory?(session: DebugSession, writeMemoryArguments: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse>;
|
|
37
|
-
getLocals?(session: DebugSession): Promise<VariableRange[]>;
|
|
38
|
-
/**
|
|
39
|
-
* Whether the current debugger supports variable reference syntax (e.g. &a) in the `memoryReference` field of
|
|
40
|
-
* @link DebugProtocol.ReadMemoryArguments, ReadMemoryArguments}
|
|
41
|
-
*/
|
|
42
|
-
supportsVariableReferenceSyntax?(session: DebugSession, variable?: DebugVariable): boolean;
|
|
43
|
-
formatVariableReference?(session: DebugSession, variable?: DebugVariable): string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Convert a base64-encoded string of bytes to the Uint8Array equivalent.
|
|
47
|
-
*/
|
|
48
|
-
export declare function base64ToBytes(base64: string): Interfaces.LabeledUint8Array;
|
|
49
|
-
export declare class DefaultMemoryProvider implements Required<MemoryProvider> {
|
|
50
|
-
canHandle(): false;
|
|
51
|
-
readMemory(session: DebugSession, readMemoryArguments: DebugProtocol.ReadMemoryArguments): Promise<Interfaces.MemoryReadResult>;
|
|
52
|
-
writeMemory(session: DebugSession, writeMemoryArguments: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse>;
|
|
53
|
-
getLocals(session: DebugSession): Promise<VariableRange[]>;
|
|
54
|
-
supportsVariableReferenceSyntax(session: DebugSession, variable?: DebugVariable | undefined): boolean;
|
|
55
|
-
formatVariableReference(session: DebugSession, variable?: DebugVariable | undefined): string;
|
|
56
|
-
}
|
|
57
|
-
export declare abstract class AbstractMemoryProvider implements Required<MemoryProvider> {
|
|
58
|
-
protected readonly defaultProvider: DefaultMemoryProvider;
|
|
59
|
-
abstract canHandle(session: DebugSession): boolean;
|
|
60
|
-
readMemory(session: DebugSession, readMemoryArguments: DebugProtocol.ReadMemoryArguments): Promise<Interfaces.MemoryReadResult>;
|
|
61
|
-
writeMemory(session: DebugSession, writeMemoryArguments: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse>;
|
|
62
|
-
getLocals(session: DebugSession): Promise<VariableRange[]>;
|
|
63
|
-
supportsVariableReferenceSyntax(session: DebugSession, variable?: DebugVariable | undefined): boolean;
|
|
64
|
-
formatVariableReference(session: DebugSession, variable?: DebugVariable | undefined): string;
|
|
65
|
-
}
|
|
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 { DebugProtocol } from '@vscode/debugprotocol';
|
|
19
|
+
import { Interfaces } from '../utils/memory-widget-utils';
|
|
20
|
+
import { VariableRange } from '../utils/memory-widget-variable-utils';
|
|
21
|
+
export declare const MemoryProvider: unique symbol;
|
|
22
|
+
/**
|
|
23
|
+
* Representation of a memory provider. It is only necessary to implement a new Memory Provider if the behavior of the Debug Adapter for a given session type
|
|
24
|
+
* deviates from the Debug Adapter Protocol. Otherwise, the DefaultMemoryProvider should handle standard DAP requests and responses.
|
|
25
|
+
*
|
|
26
|
+
* Specific peculiarities that might require special handling include: restrictions on the formatting of memory location identifiers (only hex numbers, e.g.)
|
|
27
|
+
* or deviations from the DAP in the format of the response to a given request.
|
|
28
|
+
*/
|
|
29
|
+
export interface MemoryProvider {
|
|
30
|
+
/**
|
|
31
|
+
* @param session
|
|
32
|
+
* @return whether the given MemoryProvider can handle memory reading / writing for a session of the type submitted.
|
|
33
|
+
*/
|
|
34
|
+
canHandle(session: DebugSession): boolean;
|
|
35
|
+
readMemory(session: DebugSession, readMemoryArguments: DebugProtocol.ReadMemoryArguments): Promise<Interfaces.MemoryReadResult>;
|
|
36
|
+
writeMemory?(session: DebugSession, writeMemoryArguments: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse>;
|
|
37
|
+
getLocals?(session: DebugSession): Promise<VariableRange[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the current debugger supports variable reference syntax (e.g. &a) in the `memoryReference` field of
|
|
40
|
+
* @link DebugProtocol.ReadMemoryArguments, ReadMemoryArguments}
|
|
41
|
+
*/
|
|
42
|
+
supportsVariableReferenceSyntax?(session: DebugSession, variable?: DebugVariable): boolean;
|
|
43
|
+
formatVariableReference?(session: DebugSession, variable?: DebugVariable): string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Convert a base64-encoded string of bytes to the Uint8Array equivalent.
|
|
47
|
+
*/
|
|
48
|
+
export declare function base64ToBytes(base64: string): Interfaces.LabeledUint8Array;
|
|
49
|
+
export declare class DefaultMemoryProvider implements Required<MemoryProvider> {
|
|
50
|
+
canHandle(): false;
|
|
51
|
+
readMemory(session: DebugSession, readMemoryArguments: DebugProtocol.ReadMemoryArguments): Promise<Interfaces.MemoryReadResult>;
|
|
52
|
+
writeMemory(session: DebugSession, writeMemoryArguments: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse>;
|
|
53
|
+
getLocals(session: DebugSession): Promise<VariableRange[]>;
|
|
54
|
+
supportsVariableReferenceSyntax(session: DebugSession, variable?: DebugVariable | undefined): boolean;
|
|
55
|
+
formatVariableReference(session: DebugSession, variable?: DebugVariable | undefined): string;
|
|
56
|
+
}
|
|
57
|
+
export declare abstract class AbstractMemoryProvider implements Required<MemoryProvider> {
|
|
58
|
+
protected readonly defaultProvider: DefaultMemoryProvider;
|
|
59
|
+
abstract canHandle(session: DebugSession): boolean;
|
|
60
|
+
readMemory(session: DebugSession, readMemoryArguments: DebugProtocol.ReadMemoryArguments): Promise<Interfaces.MemoryReadResult>;
|
|
61
|
+
writeMemory(session: DebugSession, writeMemoryArguments: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse>;
|
|
62
|
+
getLocals(session: DebugSession): Promise<VariableRange[]>;
|
|
63
|
+
supportsVariableReferenceSyntax(session: DebugSession, variable?: DebugVariable | undefined): boolean;
|
|
64
|
+
formatVariableReference(session: DebugSession, variable?: DebugVariable | undefined): string;
|
|
65
|
+
}
|
|
66
66
|
//# sourceMappingURL=memory-provider.d.ts.map
|
|
@@ -1,97 +1,97 @@
|
|
|
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
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.AbstractMemoryProvider = exports.DefaultMemoryProvider = exports.base64ToBytes = exports.MemoryProvider = void 0;
|
|
28
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
-
const Long = require("long");
|
|
30
|
-
exports.MemoryProvider = Symbol('MemoryProvider');
|
|
31
|
-
/**
|
|
32
|
-
* Convert a base64-encoded string of bytes to the Uint8Array equivalent.
|
|
33
|
-
*/
|
|
34
|
-
function base64ToBytes(base64) {
|
|
35
|
-
return Buffer.from(base64, 'base64');
|
|
36
|
-
}
|
|
37
|
-
exports.base64ToBytes = base64ToBytes;
|
|
38
|
-
let DefaultMemoryProvider = class DefaultMemoryProvider {
|
|
39
|
-
// This provider should only be used a fallback - it shouldn't volunteer to handle any session.
|
|
40
|
-
canHandle() {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
async readMemory(session, readMemoryArguments) {
|
|
44
|
-
var _a;
|
|
45
|
-
console.log('Requesting memory with the following arguments:', readMemoryArguments);
|
|
46
|
-
const result = await session.sendRequest('readMemory', readMemoryArguments);
|
|
47
|
-
if ((_a = result.body) === null || _a === void 0 ? void 0 : _a.data) {
|
|
48
|
-
const { body: { data, address } } = result;
|
|
49
|
-
const bytes = base64ToBytes(data);
|
|
50
|
-
const longAddress = result.body.address.startsWith('0x') ? Long.fromString(address, true, 16) : Long.fromString(address, true, 10);
|
|
51
|
-
return { bytes, address: longAddress };
|
|
52
|
-
}
|
|
53
|
-
throw new Error('Received no data from debug adapter.');
|
|
54
|
-
}
|
|
55
|
-
async writeMemory(session, writeMemoryArguments) {
|
|
56
|
-
return session.sendRequest('writeMemory', writeMemoryArguments);
|
|
57
|
-
}
|
|
58
|
-
async getLocals(session) {
|
|
59
|
-
return [];
|
|
60
|
-
}
|
|
61
|
-
supportsVariableReferenceSyntax(session, variable) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
formatVariableReference(session, variable) {
|
|
65
|
-
return '';
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
DefaultMemoryProvider = __decorate([
|
|
69
|
-
(0, inversify_1.injectable)()
|
|
70
|
-
], DefaultMemoryProvider);
|
|
71
|
-
exports.DefaultMemoryProvider = DefaultMemoryProvider;
|
|
72
|
-
let AbstractMemoryProvider = class AbstractMemoryProvider {
|
|
73
|
-
readMemory(session, readMemoryArguments) {
|
|
74
|
-
return this.defaultProvider.readMemory(session, readMemoryArguments);
|
|
75
|
-
}
|
|
76
|
-
writeMemory(session, writeMemoryArguments) {
|
|
77
|
-
return this.defaultProvider.writeMemory(session, writeMemoryArguments);
|
|
78
|
-
}
|
|
79
|
-
getLocals(session) {
|
|
80
|
-
return this.defaultProvider.getLocals(session);
|
|
81
|
-
}
|
|
82
|
-
supportsVariableReferenceSyntax(session, variable) {
|
|
83
|
-
return this.defaultProvider.supportsVariableReferenceSyntax(session, variable);
|
|
84
|
-
}
|
|
85
|
-
formatVariableReference(session, variable) {
|
|
86
|
-
return this.defaultProvider.formatVariableReference(session, variable);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, inversify_1.inject)(DefaultMemoryProvider),
|
|
91
|
-
__metadata("design:type", DefaultMemoryProvider)
|
|
92
|
-
], AbstractMemoryProvider.prototype, "defaultProvider", void 0);
|
|
93
|
-
AbstractMemoryProvider = __decorate([
|
|
94
|
-
(0, inversify_1.injectable)()
|
|
95
|
-
], AbstractMemoryProvider);
|
|
96
|
-
exports.AbstractMemoryProvider = AbstractMemoryProvider;
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.AbstractMemoryProvider = exports.DefaultMemoryProvider = exports.base64ToBytes = exports.MemoryProvider = void 0;
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const Long = require("long");
|
|
30
|
+
exports.MemoryProvider = Symbol('MemoryProvider');
|
|
31
|
+
/**
|
|
32
|
+
* Convert a base64-encoded string of bytes to the Uint8Array equivalent.
|
|
33
|
+
*/
|
|
34
|
+
function base64ToBytes(base64) {
|
|
35
|
+
return Buffer.from(base64, 'base64');
|
|
36
|
+
}
|
|
37
|
+
exports.base64ToBytes = base64ToBytes;
|
|
38
|
+
let DefaultMemoryProvider = class DefaultMemoryProvider {
|
|
39
|
+
// This provider should only be used a fallback - it shouldn't volunteer to handle any session.
|
|
40
|
+
canHandle() {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
async readMemory(session, readMemoryArguments) {
|
|
44
|
+
var _a;
|
|
45
|
+
console.log('Requesting memory with the following arguments:', readMemoryArguments);
|
|
46
|
+
const result = await session.sendRequest('readMemory', readMemoryArguments);
|
|
47
|
+
if ((_a = result.body) === null || _a === void 0 ? void 0 : _a.data) {
|
|
48
|
+
const { body: { data, address } } = result;
|
|
49
|
+
const bytes = base64ToBytes(data);
|
|
50
|
+
const longAddress = result.body.address.startsWith('0x') ? Long.fromString(address, true, 16) : Long.fromString(address, true, 10);
|
|
51
|
+
return { bytes, address: longAddress };
|
|
52
|
+
}
|
|
53
|
+
throw new Error('Received no data from debug adapter.');
|
|
54
|
+
}
|
|
55
|
+
async writeMemory(session, writeMemoryArguments) {
|
|
56
|
+
return session.sendRequest('writeMemory', writeMemoryArguments);
|
|
57
|
+
}
|
|
58
|
+
async getLocals(session) {
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
supportsVariableReferenceSyntax(session, variable) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
formatVariableReference(session, variable) {
|
|
65
|
+
return '';
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
DefaultMemoryProvider = __decorate([
|
|
69
|
+
(0, inversify_1.injectable)()
|
|
70
|
+
], DefaultMemoryProvider);
|
|
71
|
+
exports.DefaultMemoryProvider = DefaultMemoryProvider;
|
|
72
|
+
let AbstractMemoryProvider = class AbstractMemoryProvider {
|
|
73
|
+
readMemory(session, readMemoryArguments) {
|
|
74
|
+
return this.defaultProvider.readMemory(session, readMemoryArguments);
|
|
75
|
+
}
|
|
76
|
+
writeMemory(session, writeMemoryArguments) {
|
|
77
|
+
return this.defaultProvider.writeMemory(session, writeMemoryArguments);
|
|
78
|
+
}
|
|
79
|
+
getLocals(session) {
|
|
80
|
+
return this.defaultProvider.getLocals(session);
|
|
81
|
+
}
|
|
82
|
+
supportsVariableReferenceSyntax(session, variable) {
|
|
83
|
+
return this.defaultProvider.supportsVariableReferenceSyntax(session, variable);
|
|
84
|
+
}
|
|
85
|
+
formatVariableReference(session, variable) {
|
|
86
|
+
return this.defaultProvider.formatVariableReference(session, variable);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, inversify_1.inject)(DefaultMemoryProvider),
|
|
91
|
+
__metadata("design:type", DefaultMemoryProvider)
|
|
92
|
+
], AbstractMemoryProvider.prototype, "defaultProvider", void 0);
|
|
93
|
+
AbstractMemoryProvider = __decorate([
|
|
94
|
+
(0, inversify_1.injectable)()
|
|
95
|
+
], AbstractMemoryProvider);
|
|
96
|
+
exports.AbstractMemoryProvider = AbstractMemoryProvider;
|
|
97
97
|
//# sourceMappingURL=memory-provider.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
export {};
|
|
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
|
+
export {};
|
|
17
17
|
//# sourceMappingURL=memory-provider.spec.d.ts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
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
|
-
const chai_1 = require("chai");
|
|
19
|
-
describe('memory-inspector', () => {
|
|
20
|
-
it('should pass', () => {
|
|
21
|
-
(0, chai_1.expect)(true).to.equal(true);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
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
|
+
const chai_1 = require("chai");
|
|
19
|
+
describe('memory-inspector', () => {
|
|
20
|
+
it('should pass', () => {
|
|
21
|
+
(0, chai_1.expect)(true).to.equal(true);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
24
|
//# sourceMappingURL=memory-provider.spec.js.map
|