Skip to content

Commit bed4615

Browse files
committed
Add documentation of preConnectCommands
1 parent 0f620fd commit bed4615

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## Unreleased
44

55
- Fixes [cdt-gdb-adapter `#432`](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/issues/432): Incorrect documentation of `initCommands`.
6+
- Update to cdt-gdb-adapter [v?.?.?](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/releases/tag/v?.?.?)
7+
- Implements [`#432`](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/issues/432): Add `preConnectCommands` setting.
68

79
## 2.6.0
810

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Launch and attach configuration settings that can be used with the `gdb` debugge
3535
| `verbose` | x | x | `boolean` | Produce verbose log output. |
3636
| `logFile` | x | x | `string` | Absolute path to the file to log interaction with GDB.|
3737
| `openGdbConsole` | x | x | `boolean` | *(UNIX-only)* Open a GDB console in your IDE while debugging. |
38+
| `preConnectCommands` | x | x | `string[]` | List of GDB commands sent before attaching to inferior. |
3839
| `initCommands` | x | x | `string[]` | List of GDB commands sent after attaching to inferior before running/continuing. |
3940

4041

@@ -54,6 +55,7 @@ Launch and attach configuration settings that can be used with the `gdbtarget` d
5455
| `verbose` | x | x | `boolean` | Produce verbose log output. |
5556
| `logFile` | x | x | `string` | Absolute path to the file to log interaction with GDB.|
5657
| `openGdbConsole` | x | x | `boolean` | *(UNIX-only)* Open a GDB console in your IDE while debugging. |
58+
| `preConnectCommands` | x | x | `string[]` | List of GDB commands sent to initialize GDB before attaching to target. |
5759
| `initCommands` | x | x | `string[]` | List of GDB commands sent to initialize debug target after attaching to it but before loading image and symbols. |
5860
| `preRunCommands` | x | x | `string[]` | List of GDB commands sent after loading image on target before resuming target. |
5961
| `imageAndSymbols` | x | x | `object` | Additional settings for loading images to the target and symbols into the debugger. See section "`imageAndSymbols` object" for details.

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@
153153
"type": "boolean",
154154
"description": "(UNIX-only) Open a GDB console in your IDE while debugging"
155155
},
156+
"preConnectCommands": {
157+
"type": "array",
158+
"description": "List of GDB commands sent before initCommands.",
159+
"items": {
160+
"type": "string"
161+
},
162+
"default": []
163+
},
156164
"initCommands": {
157165
"type": "array",
158166
"description": "List of GDB commands sent before starting inferior.",
@@ -221,6 +229,14 @@
221229
"type": "boolean",
222230
"description": "(UNIX-only) Open a GDB console in your IDE while debugging"
223231
},
232+
"preConnectCommands": {
233+
"type": "array",
234+
"description": "List of GDB commands sent before attaching to inferior.",
235+
"items": {
236+
"type": "string"
237+
},
238+
"default": []
239+
},
224240
"initCommands": {
225241
"type": "array",
226242
"description": "List of GDB commands sent after attaching to inferior before continuing.",
@@ -322,6 +338,14 @@
322338
"type": "boolean",
323339
"description": "(UNIX-only) Open a GDB console in your IDE while debugging"
324340
},
341+
"preConnectCommands": {
342+
"type": "array",
343+
"description": "List of GDB commands sent before attaching to target.",
344+
"items": {
345+
"type": "string"
346+
},
347+
"default": []
348+
},
325349
"initCommands": {
326350
"type": "array",
327351
"description": "List of GDB commands sent after attaching to target before loading image on target.",
@@ -588,6 +612,14 @@
588612
"type": "boolean",
589613
"description": "(UNIX-only) Open a GDB console in your IDE while debugging"
590614
},
615+
"preConnectCommands": {
616+
"type": "array",
617+
"description": "List of GDB commands sent before attaching to target.",
618+
"items": {
619+
"type": "string"
620+
},
621+
"default": []
622+
},
591623
"initCommands": {
592624
"type": "array",
593625
"description": "List of GDB commands sent after attaching to target before loading image on target.",

0 commit comments

Comments
 (0)