@theia/memory-inspector 1.53.0-next.5 → 1.53.0-next.55

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.
Files changed (40) hide show
  1. package/README.md +71 -71
  2. package/package.json +4 -4
  3. package/src/browser/diff-widget/memory-diff-options-widget.tsx +152 -152
  4. package/src/browser/diff-widget/memory-diff-select-widget.tsx +163 -163
  5. package/src/browser/diff-widget/memory-diff-table-widget.tsx +366 -366
  6. package/src/browser/diff-widget/memory-diff-widget-types.ts +45 -45
  7. package/src/browser/editable-widget/memory-editable-table-widget.tsx +359 -359
  8. package/src/browser/memory-inspector-frontend-contribution.ts +301 -301
  9. package/src/browser/memory-inspector-frontend-module.ts +118 -118
  10. package/src/browser/memory-provider/cdt-gdb-memory-provider.ts +132 -132
  11. package/src/browser/memory-provider/memory-provider-service.ts +86 -86
  12. package/src/browser/memory-provider/memory-provider.spec.ts +23 -23
  13. package/src/browser/memory-provider/memory-provider.ts +119 -119
  14. package/src/browser/memory-widget/memory-options-widget.tsx +738 -738
  15. package/src/browser/memory-widget/memory-table-widget.tsx +625 -625
  16. package/src/browser/memory-widget/memory-widget.ts +114 -114
  17. package/src/browser/register-widget/register-filter-service.ts +76 -76
  18. package/src/browser/register-widget/register-options-widget.tsx +393 -393
  19. package/src/browser/register-widget/register-table-widget.tsx +276 -276
  20. package/src/browser/register-widget/register-widget-types.ts +45 -45
  21. package/src/browser/register-widget/register-widget.css +34 -34
  22. package/src/browser/style/index.css +746 -746
  23. package/src/browser/style/memory-lock.svg +21 -21
  24. package/src/browser/style/memory-view.svg +20 -20
  25. package/src/browser/style/register-lock.svg +29 -29
  26. package/src/browser/style/register-view.svg +28 -28
  27. package/src/browser/utils/memory-commands.ts +76 -76
  28. package/src/browser/utils/memory-hover-renderer.ts +113 -113
  29. package/src/browser/utils/memory-recents.ts +58 -58
  30. package/src/browser/utils/memory-widget-components.tsx +193 -193
  31. package/src/browser/utils/memory-widget-manager.ts +179 -179
  32. package/src/browser/utils/memory-widget-utils.tsx +132 -132
  33. package/src/browser/utils/memory-widget-variable-utils.ts +170 -170
  34. package/src/browser/utils/multi-select-bar.css +61 -61
  35. package/src/browser/utils/multi-select-bar.tsx +75 -75
  36. package/src/browser/wrapper-widgets/memory-dock-panel.ts +51 -51
  37. package/src/browser/wrapper-widgets/memory-dockpanel-placeholder-widget.tsx +38 -38
  38. package/src/browser/wrapper-widgets/memory-layout-widget.tsx +167 -167
  39. package/src/common/util.ts +28 -28
  40. package/src/common/utils.spec.ts +52 -52
@@ -1,52 +1,52 @@
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
-
17
- import { hexStrToUnsignedLong } from './util';
18
- import { expect } from 'chai';
19
- import * as Long from 'long';
20
-
21
- describe('utils', function (): void {
22
- it('#hexStrToUnsignedLong', function (): void {
23
- let val = hexStrToUnsignedLong('');
24
- expect(val).eql(new Long(0, 0, true));
25
-
26
- val = hexStrToUnsignedLong('0x');
27
- expect(val).eql(new Long(0, 0, true));
28
-
29
- val = hexStrToUnsignedLong('0x0');
30
- expect(val).eql(new Long(0, 0, true));
31
-
32
- val = hexStrToUnsignedLong('0x1');
33
- expect(val).eql(new Long(0x1, 0, true));
34
-
35
- val = hexStrToUnsignedLong('0x12345678abcd');
36
- expect(val).eql(new Long(0x5678abcd, 0x1234, true));
37
-
38
- val = hexStrToUnsignedLong('0x12345678abcd1234');
39
- expect(val).eql(new Long(0xabcd1234, 0x12345678, true));
40
- });
41
-
42
- it('should handle -1 correctly', () => {
43
- const val = hexStrToUnsignedLong('-0x1');
44
- expect(val).eql(Long.fromInt(-1, true));
45
- });
46
-
47
- it('should handle long decimal numbers (up to 2^64-1)', () => {
48
- const input = '18446744073709551615';
49
- const val = Long.fromString(input, true, 10);
50
- expect(val.toString(10)).eql(input);
51
- });
52
- });
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
+
17
+ import { hexStrToUnsignedLong } from './util';
18
+ import { expect } from 'chai';
19
+ import * as Long from 'long';
20
+
21
+ describe('utils', function (): void {
22
+ it('#hexStrToUnsignedLong', function (): void {
23
+ let val = hexStrToUnsignedLong('');
24
+ expect(val).eql(new Long(0, 0, true));
25
+
26
+ val = hexStrToUnsignedLong('0x');
27
+ expect(val).eql(new Long(0, 0, true));
28
+
29
+ val = hexStrToUnsignedLong('0x0');
30
+ expect(val).eql(new Long(0, 0, true));
31
+
32
+ val = hexStrToUnsignedLong('0x1');
33
+ expect(val).eql(new Long(0x1, 0, true));
34
+
35
+ val = hexStrToUnsignedLong('0x12345678abcd');
36
+ expect(val).eql(new Long(0x5678abcd, 0x1234, true));
37
+
38
+ val = hexStrToUnsignedLong('0x12345678abcd1234');
39
+ expect(val).eql(new Long(0xabcd1234, 0x12345678, true));
40
+ });
41
+
42
+ it('should handle -1 correctly', () => {
43
+ const val = hexStrToUnsignedLong('-0x1');
44
+ expect(val).eql(Long.fromInt(-1, true));
45
+ });
46
+
47
+ it('should handle long decimal numbers (up to 2^64-1)', () => {
48
+ const input = '18446744073709551615';
49
+ const val = Long.fromString(input, true, 10);
50
+ expect(val.toString(10)).eql(input);
51
+ });
52
+ });