forked from Marus/cortex-debug
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
1575 lines (1575 loc) · 91.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"activationEvents": [
"onDebugResolve:cortex-debug"
],
"categories": [
"Debuggers"
],
"contributes": {
"configuration": {
"type": "object",
"title": "Cortex-Debug Configuration",
"properties": {
"cortex-debug.armToolchainPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the GCC Arm Toolchain (standard prefix is \"arm-none-eabi\" - can be set through the armToolchainPrefix setting) to use. If not set the tools must be on the system path. Do not include the executable file name in this path."
},
"cortex-debug.armToolchainPrefix": {
"type": [
"string",
"null"
],
"default": "arm-none-eabi",
"description": "The prefix to use for the arm toolchain - the standard release from arm uses \"arm-none-eabi\" but alternative toolchains may use a different prefix. Currently the gdb and objdump tools are needed."
},
"cortex-debug.JLinkGDBServerPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the JLink GDB Server. If not set then JLinkGDBServer (JLinkGDBServerCL.exe on Windows) must be on the system path."
},
"cortex-debug.openocdPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the OpenOCD GDB Server executable. If not set then openocd (openocd.exe on Windows) must be on the system path."
},
"cortex-debug.pyocdPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PyOCD GDB Server executable. If not set then pyocd-gdbserver must be on the system path."
},
"cortex-debug.PEGDBServerPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the PEMicro GDB Server. If not set then PEGDBServer (pegdbserver_console.exe on Windows) must be on the system path."
},
"cortex-debug.stutilPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the Texane's ST-Util GDB Server executable. If not set then st-util (st-util.exe on Windows) must be on the system path."
},
"cortex-debug.enableTelemetry": {
"type": "boolean",
"default": true,
"description": "Enable Telemetry for the Cortex-Debug Extension. Reporting will also respect the global telemetry.enableTelemetry setting."
},
"cortex-debug.flattenAnonymous": {
"type": "boolean",
"default": false,
"description": "If true, anonymous unions/structs are flattened in their parent data structure"
},
"cortex-debug.registerUseNaturalFormat": {
"type": "boolean",
"default": true,
"description": "If true, display registers in their natural format as specified by ARM. Hex otherwise."
}
}
},
"commands": [
{
"command": "cortex-debug.peripherals.updateNode",
"title": "Update Value",
"icon": {
"light": "resources/light/edit.svg",
"dark": "resources/dark/edit.svg"
}
},
{
"command": "cortex-debug.peripherals.copyValue",
"title": "Copy Value",
"icon": {
"light": "resources/light/copy.svg",
"dark": "resources/dark/copy.svg"
}
},
{
"command": "cortex-debug.registers.copyValue",
"title": "Copy Value",
"icon": {
"light": "resources/light/copy.svg",
"dark": "resources/dark/copy.svg"
}
},
{
"command": "cortex-debug.peripherals.setFormat",
"title": "Set Value Format"
},
{
"command": "cortex-debug.peripherals.forceRefresh",
"title": "Refresh"
},
{
"category": "Cortex-Debug",
"command": "cortex-debug.examineMemory",
"title": "View Memory"
},
{
"category": "Cortex-Debug",
"command": "cortex-debug.viewDisassembly",
"title": "View Disassembly (Function)"
},
{
"category": "Cortex-Debug",
"command": "cortex-debug.setForceDisassembly",
"title": "Set Force Disassembly"
}
],
"languages": [
{
"id": "cortex-debug.disassembly",
"aliases": [
"Cortex-Debug Disassembly"
],
"extensions": [
".cdasm"
]
},
{
"id": "cortex-debug.memoryview",
"aliases": [
"Cortex-Debug Memory View"
],
"extensions": [
".cdmem"
]
}
],
"grammars": [
{
"language": "cortex-debug.disassembly",
"scopeName": "source.cortex-debug-disassembly",
"path": "./syntaxes/cortex-debug-disassembly.json"
},
{
"language": "cortex-debug.memoryview",
"scopeName": "source.cortex-debug-memoryview",
"path": "./syntaxes/cortex-debug-memoryview.json"
}
],
"debuggers": [
{
"configurationAttributes": {
"attach": {
"properties": {
"servertype": {
"type": "string",
"description": "GDB Server type - supported types are jlink, openocd, pyocd, pe and stutil",
"enum": [
"jlink",
"openocd",
"pyocd",
"stutil",
"bmp",
"pe",
"qemu",
"external"
]
},
"cwd": {
"description": "Path of project",
"type": "string"
},
"debuggerArgs": {
"default": [],
"description": "Additional arguments to pass to GDB command line",
"type": "array"
},
"preAttachCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the start of the main attach sequence (immediately after attaching to target)."
},
"postAttachCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed after the main attach sequence has finished."
},
"preRestartCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the beginning of the restart sequence (after interrupting execution)."
},
"postRestartCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the restart sequence."
},
"overrideAttachCommands": {
"default": null,
"type": "array",
"items": "string",
"description": "You can use this to property to override the commands that are normally executed as part of attaching to a running target. In most cases it is preferable to use preAttachCommands and postAttachCommands to customize the GDB attach sequence."
},
"overrideRestartCommands": {
"default": null,
"type": "array",
"items": "string",
"description": "You can use this to property to override the commands that are normally executed as part of restarting the target. In most cases it is preferable to use preRestartCommands and postRestartCommands to customize the GDB restart sequence."
},
"postStartSessionCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the start sequence, after a debug session has already started and runToMain is false."
},
"postRestartSessionCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the re-start sequence, after a debug session has already started."
},
"overrideGDBServerStartedRegex": {
"description": "You can supply a regular expression (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) in the configuration property to override the output from the GDB server that is looked for to determine if the GDB server has started. Under most circumstances this will not be necessary - but could be needed as a result of a change in the output of a GDB server making it incompatible with cortex-debug. This property has no effect for bmp or external GDB server types.",
"type": "string",
"default": null
},
"cpu": {
"default": "cortex-m3",
"type": "string",
"description": "CPU Type Selection - used for QEMU server type",
"enum": [
"cortex-m3",
"cortex-m4"
]
},
"machine": {
"default": "lm3s811evb",
"type": "string",
"description": "Machine Type Selection - used for QEMU server type",
"enum": [
"lm3s811evb",
"lm3s6965evb"
]
},
"device": {
"default": "",
"description": "Target Device Identifier",
"type": "string"
},
"rtos": {
"default": null,
"description": "RTOS being used. For JLink this can be FreeRTOS, embOS or the path to a custom JLink RTOS Plugin library. For OpenOCD this can be eCos, ThreadX, FreeRTOS, ChibiOS, embKernel, mqx, or uCOS-III.",
"type": "string"
},
"armToolchainPath": {
"default": null,
"description": "This setting can be used to override the armToolchainPath user setting for a particular launch configuration. This should be the path where arm-none-eabi-gdb and arm-none-eabi-objdump are located.",
"type": "string"
},
"toolchainPrefix": {
"default": null,
"description": "This setting can be used to override the toolchainPrefix user setting for a particular launch configuration.",
"type": "string"
},
"serverpath": {
"default": null,
"description": "This setting can be used to override the gdb-server path user/workspace setting for a particular launch configuration. It is the full pathname to the executable or name of executable if it is in your PATH",
"type": "string"
},
"serverArgs": {
"default": [],
"description": "Additional arguments to pass to gdb-server command line",
"type": "array",
"items": "string"
},
"executable": {
"description": "Path of executable",
"type": "string"
},
"gdbTarget": {
"default": null,
"description": "For externally controlled GDB servers you must specify the GDB target to connect to. This can either be a \"hostname:port\" combination or path to a serial port",
"type": "string"
},
"demangle": {
"description": "Experimental: If enabled the debugger will demangle C++ names.",
"type": "boolean",
"default": false
},
"numberOfProcessors": {
"description": "Number of processors/cores in the target device.",
"type": "number",
"multipleOf": 1,
"minimum": 1,
"maximum": 10,
"default": 1
},
"targetProcessor": {
"description": "The processor you want to debug. Zero based integer index. Must be less than 'numberOfProcessors'",
"type": "number",
"multipleOf": 1,
"minimum": 0,
"maximum": 9,
"default": 0
},
"graphConfig": {
"items": {
"oneOf": [
{
"properties": {
"annotate": {
"default": true,
"description": "Create annotations on the graph for when the target processor starts and stops execution. (green line for starting execution, red line for stopping execution).",
"type": "boolean"
},
"label": {
"description": "Label for Graph",
"type": "string"
},
"maximum": {
"default": 65535,
"description": "Maximum value for the X-Axis",
"type": "number"
},
"minimum": {
"default": 0,
"description": "Minimum value for the Y-Axis",
"type": "number"
},
"plots": {
"description": "Plot configurations. Data sources must be configured for \"graph\" (or \"advanced\" with a decoder that sends graph data) in the \"swoConfig\" section",
"items": {
"properties": {
"color": {
"pattern": "^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$",
"type": "string"
},
"graphId": {
"description": "Graph Data Source Id for the plot.",
"type": "string"
},
"label": {
"description": "A label for this data set",
"type": "string"
}
},
"required": [
"graphId"
],
"type": "object"
},
"type": "array"
},
"timespan": {
"default": 30,
"description": "Length of time (seconds) to be plotted on screen.",
"type": "number"
},
"type": {
"enum": [
"realtime"
],
"type": "string"
}
},
"required": [
"label",
"plots",
"minimum",
"maximum"
],
"type": "object"
},
{
"properties": {
"label": {
"description": "Label for graph",
"type": "string"
},
"timespan": {
"default": 10,
"description": "The amount of time (seconds) that the XY Plot will show the trace for.",
"type": "number"
},
"type": {
"enum": [
"x-y-plot"
],
"type": "string"
},
"xGraphId": {
"description": "Graph Data Source Id for the X axis",
"type": "string"
},
"xMaximum": {
"default": 65535,
"description": "Maximum value on the X-Axis",
"type": "number"
},
"xMinimum": {
"default": 0,
"description": "Minimum value on the X-Axis",
"type": "number"
},
"yGraphId": {
"description": "Graph Data Source Id Port for the Y axis",
"type": "string"
},
"yMaximum": {
"default": 65535,
"description": "Maximum value on the Y-Axis",
"type": "number"
},
"yMinimum": {
"default": 0,
"description": "Minimum value on the Y-Axis",
"type": "number"
}
},
"required": [
"xGraphId",
"yGraphId",
"label"
],
"type": "object"
}
]
},
"type": "array"
},
"showDevDebugOutput": {
"default": false,
"description": "Prints all GDB responses to the console",
"type": "boolean"
},
"showDevDebugTimestamps": {
"default": false,
"description": "Show timestamps when 'showDevDebugOutput' is true",
"type": "boolean"
},
"svdFile": {
"default": null,
"description": "Path to an SVD file describing the peripherals of the microcontroller; if not supplied then one may be selected based upon the 'device' entered.",
"type": "string"
},
"swoConfig": {
"properties": {
"cpuFrequency": {
"default": 0,
"description": "Target CPU frequency in Hz; 0 will attempt to automatically calculate.",
"type": "number"
},
"enabled": {
"default": false,
"description": "Enable SWO decoding.",
"type": "boolean"
},
"source": {
"type": "string",
"default": "probe",
"description": "Source for SWO data. Can either be \"probe\" to get directly from debug probe, or a serial port device to use a serial port external to the debug probe."
},
"decoders": {
"description": "SWO Decoder Configuration",
"items": {
"anyOf": [
{
"properties": {
"label": {
"description": "A label for the output window.",
"type": "string"
},
"showOnStartup": {
"description": "If true, switches to this output when starting a debug session.",
"type": "boolean"
},
"port": {
"description": "ITM Port Number",
"maximum": 31,
"minimum": 0,
"type": "number"
},
"type": {
"enum": [
"console"
],
"type": "string"
},
"encoding": {
"type": "string",
"default": "utf8",
"enum": [
"ascii",
"utf8",
"ucs2",
"utf16le"
]
}
},
"required": [
"port"
],
"type": "object"
},
{
"properties": {
"encoding": {
"default": "unsigned",
"description": "This property is only used for binary and graph output formats.",
"enum": [
"unsigned",
"signed",
"Q16.16",
"float"
],
"type": "string"
},
"label": {
"description": "A label for the output window.",
"type": "string"
},
"port": {
"description": "ITM Port Number",
"maximum": 31,
"minimum": 0,
"type": "number"
},
"scale": {
"default": 1,
"description": "This setting will scale the raw value from the ITM port by the specified value. Can be used, for example, to scale a raw n-bit ADC reading to a voltage value. (e.g to scale a 12-bit ADC reading to a 3.3v scale you would need a scale value of 3.3/4096 = 0.0008056640625",
"type": "number"
},
"type": {
"enum": [
"binary"
],
"type": "string"
}
},
"required": [
"port"
],
"type": "object"
},
{
"properties": {
"encoding": {
"default": "unsigned",
"description": "This property is only used for binary and graph output formats.",
"enum": [
"unsigned",
"signed",
"Q16.16",
"float"
],
"type": "string"
},
"graphId": {
"description": "The identifier to use for this data in graph configurations.",
"type": "string"
},
"port": {
"description": "ITM Port Number",
"maximum": 31,
"minimum": 0,
"type": "number"
},
"scale": {
"default": 1,
"description": "This setting will scale the raw value from the ITM port by the specified value. Can be used, for example, to scale a raw n-bit ADC reading to a voltage value. (e.g to scale a 12-bit ADC reading to a 3.3v scale you would need a scale value of 3.3/4096 = 0.0008056640625",
"type": "number"
},
"type": {
"enum": [
"graph"
],
"type": "string"
}
},
"required": [
"port",
"graphId"
],
"type": "object"
},
{
"properties": {
"config": {
"additionalProperties": true,
"type": "object"
},
"decoder": {
"description": "Path to a javascript module to implement the decoding functionality.",
"type": "string"
},
"ports": {
"description": "ITM Port Numbers",
"type": "array",
"items": {
"maximum": 31,
"minimum": 0,
"type": "number"
}
},
"type": {
"enum": [
"advanced"
],
"type": "string"
}
},
"required": [
"ports",
"decoder"
],
"type": "object"
}
]
},
"type": "array"
},
"swoFrequency": {
"default": 0,
"description": "SWO frequency in Hz; 0 will attempt to automatically calculate.",
"type": "number"
}
},
"required": [],
"type": "object"
},
"ipAddress": {
"default": null,
"description": "IP Address for networked J-Link Adapter",
"pattern": "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$",
"type": "string"
},
"serialNumber": {
"default": null,
"description": "J-Link Serial Number - only needed if multiple J-Links are connected to the computer",
"type": "string"
},
"interface": {
"default": "swd",
"description": "Debug Interface type to use for connections (defaults to SWD) - Used for J-Link and BMP probes.",
"type": "string",
"enum": [
"swd",
"jtag"
]
},
"openOCDLaunchCommands": {
"default": [],
"description": "OpenOCD commands after config. files are loaded (-c options)",
"items": {
"type": "string"
},
"type": "array"
},
"openOCDPreConfigLaunchCommands": {
"default": [],
"description": "OpenOCD commands before config. files are loaded (-c options)",
"items": {
"type": "string"
},
"type": "array"
},
"configFiles": {
"description": "OpenOCD/pegdbserver configuration file(s) to load",
"items": {
"type": "string"
},
"type": "array"
},
"searchDir": {
"default": [],
"description": "OpenOCD dir to search for config files and scripts",
"items": {
"type": "string"
},
"type": "array"
},
"v1": {
"default": false,
"description": "Set this to true if your debug probe is a ST-Link V1 (for example, the ST-Link on the STM32 VL Discovery is a V1 device). When set to false a ST-Link V2 device is used.",
"type": "boolean"
},
"targetId": {
"description": "On BMP this is the ID number that should be passed to the attach command (defaults to 1); for PyOCD this is the target identifier (only needed for custom hardware)",
"anyOf": [
{
"type": "string"
},
{
"type": "number",
"minimum": 1
}
]
},
"boardId": {
"description": "PyOCD Board Identifier. Needed if multiple compatible boards are connected.",
"type": "string"
},
"cmsisPack": {
"description": "Path to a CMSIS-Pack file. Use to add extra device support.",
"type": "string"
},
"BMPGDBSerialPort": {
"type": "string",
"description": "The serial port for the Black Magic Probe GDB server. On Windows this will be \"COM<num>\", on Linux this will be something similar to /dev/ttyACM0, on OS X something like /dev/cu.usbmodemE2C0C4C6 (do not use tty versions on OS X)"
},
"powerOverBMP": {
"type": "string",
"description": "Power up the board over Black Magic Probe. \"powerOverBMP\" : \"enable\" or \"powerOverBMP\" : \"disable\". If not set it will use the last power state."
}
},
"required": [
"executable"
]
},
"launch": {
"properties": {
"servertype": {
"type": "string",
"description": "GDB Server type - supported types are jlink, openocd, pyocd, pe and stutil",
"enum": [
"jlink",
"openocd",
"pyocd",
"stutil",
"bmp",
"pe",
"qemu",
"external"
]
},
"cwd": {
"description": "Path of project",
"type": "string"
},
"debuggerArgs": {
"default": [],
"description": "Additional arguments to pass to GDB command line",
"type": "array"
},
"preLaunchCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the start of the main launch sequence (immediately after attaching to target)."
},
"postLaunchCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed after the main launch sequence has finished."
},
"preRestartCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the beginning of the restart sequence (after interrupting execution)."
},
"postRestartCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the restart sequence."
},
"overrideLaunchCommands": {
"default": null,
"type": "array",
"items": "string",
"description": "You can use this to property to override the commands that are normally executed as part of flashing and launching the target. In most cases it is preferable to use preLaunchCommands and postLaunchCommands to customize the GDB launch sequence."
},
"overrideRestartCommands": {
"default": null,
"type": "array",
"items": "string",
"description": "You can use this to property to override the commands that are normally executed as part of restarting the target. In most cases it is preferable to use preRestartCommands and postRestartCommands to customize the GDB restart sequence."
},
"postStartSessionCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the start sequence, after a debug session has already started and runToMain is false."
},
"postRestartSessionCommands": {
"default": [],
"type": "array",
"items": "string",
"description": "Additional GDB Commands to be executed at the end of the re-start sequence, after a debug session has already started."
},
"overrideGDBServerStartedRegex": {
"description": "You can supply a regular expression (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) in the configuration property to override the output from the GDB server that is looked for to determine if the GDB server has started. Under most circumstances this will not be necessary - but could be needed as a result of a change in the output of a GDB server making it incompatible with cortex-debug. This property has no effect for bmp or external GDB server types.",
"type": "string",
"default": null
},
"cpu": {
"default": "cortex-m3",
"type": "string",
"description": "CPU Type Selection - used for QEMU server type",
"enum": [
"cortex-m3",
"cortex-m4"
]
},
"machine": {
"default": "lm3s811evb",
"type": "string",
"description": "Machine Type Selection - used for QEMU server type",
"enum": [
"lm3s811evb",
"lm3s6965evb"
]
},
"device": {
"default": "",
"description": "Target Device Identifier",
"type": "string"
},
"rtos": {
"default": null,
"description": "RTOS being used. For JLink this can be FreeRTOS, embOS or the path to a custom JLink RTOS Plugin library. For OpenOCD this can be eCos, ThreadX, FreeRTOS, ChibiOS, embKernel, mqx, or uCOS-III.",
"type": "string"
},
"armToolchainPath": {
"default": null,
"description": "This setting can be used to override the armToolchainPath user setting for a particular launch configuration. This should be the path where arm-none-eabi-gdb and arm-none-eabi-objdump are located.",
"type": "string"
},
"toolchainPrefix": {
"default": null,
"description": "This setting can be used to override the toolchainPrefix user setting for a particular launch configuration.",
"type": "string"
},
"serverpath": {
"default": null,
"description": "This setting can be used to override the gdb-server path user/workspace setting for a particular launch configuration. It is the full pathname to the executable or name of executable if it is in your PATH",
"type": "string"
},
"serverArgs": {
"default": [],
"description": "Additional arguments to pass to gdb-server command line",
"type": "array",
"items": "string"
},
"executable": {
"description": "Path of executable",
"type": "string"
},
"gdbTarget": {
"default": null,
"description": "For externally controlled GDB servers you must specify the GDB target to connect to. This can either be a \"hostname:port\" combination or path to a serial port",
"type": "string"
},
"runToMain": {
"description": "If enabled the debugger will run until it the start of the main function.",
"type": "boolean",
"default": false
},
"demangle": {
"description": "Experimental: If enabled the debugger will demangle C++ names.",
"type": "boolean",
"default": false
},
"numberOfProcessors": {
"description": "Number of processors/cores in the target device.",
"type": "number",
"multipleOf": 1,
"minimum": 1,
"maximum": 10,
"default": 1
},
"targetProcessor": {
"description": "The processor you want to debug. Zero based integer index. Must be less than 'numberOfProcessors'",
"type": "number",
"multipleOf": 1,
"minimum": 0,
"maximum": 9,
"default": 0
},
"graphConfig": {
"items": {
"oneOf": [
{
"properties": {
"annotate": {
"default": true,
"description": "Create annotations on the graph for when the target processor starts and stops execution. (green line for starting execution, red line for stopping execution).",
"type": "boolean"
},
"label": {
"description": "Label for Graph",
"type": "string"
},
"maximum": {
"default": 65535,
"description": "Maximum value for the X-Axis",
"type": "number"
},
"minimum": {
"default": 0,
"description": "Minimum value for the Y-Axis",
"type": "number"
},
"plots": {
"description": "Plot configurations. Data sources must be configured for \"graph\" (or \"advanced\" with a decoder that sends graph data) in the \"swoConfig\" section",
"items": {
"properties": {
"color": {
"pattern": "^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$",
"type": "string"
},
"graphId": {
"description": "Graph Data Source Id for the plot.",
"type": "string"
},
"label": {
"description": "A label for this data set",
"type": "string"
}
},
"required": [
"graphId"
],
"type": "object"
},
"type": "array"
},
"timespan": {
"default": 30,
"description": "Length of time (seconds) to be plotted on screen.",
"type": "number"
},
"type": {
"enum": [
"realtime"
],
"type": "string"
}
},
"required": [
"label",
"plots",
"minimum",
"maximum"
],
"type": "object"
},
{
"properties": {
"label": {
"description": "Label for graph",
"type": "string"
},
"timespan": {
"default": 10,
"description": "The amount of time (seconds) that the XY Plot will show the trace for.",
"type": "number"
},
"type": {
"enum": [
"x-y-plot"
],
"type": "string"
},
"xGraphId": {
"description": "Graph Data Source Id for the X axis",
"type": "string"
},
"xMaximum": {
"default": 65535,
"description": "Maximum value on the X-Axis",
"type": "number"
},
"xMinimum": {
"default": 0,
"description": "Minimum value on the X-Axis",
"type": "number"