Skip to content

Commit e6bc2ac

Browse files
authored
docs: add documentation of updateThreadInfo setting (#197)
1 parent bed4615 commit e6bc2ac

3 files changed

Lines changed: 54 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
- Fixes [cdt-gdb-adapter `#432`](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/issues/432): Incorrect documentation of `initCommands`.
66
- Update to cdt-gdb-adapter [v?.?.?](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/releases/tag/v?.?.?)
77
- Implements [`#432`](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/issues/432): Add `preConnectCommands` setting.
8+
- Implements [`#482`](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/pull/482): Add `updateThreadInfo` setting.
9+
810

911
## 2.6.0
1012

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,18 @@ Launch and attach configuration settings that can be used with the `gdb` debugge
3737
| `openGdbConsole` | x | x | `boolean` | *(UNIX-only)* Open a GDB console in your IDE while debugging. |
3838
| `preConnectCommands` | x | x | `string[]` | List of GDB commands sent before attaching to inferior. |
3939
| `initCommands` | x | x | `string[]` | List of GDB commands sent after attaching to inferior before running/continuing. |
40+
| `updateThreadInfo` | x | x | `string` | Controls when thread information is retrieved from GDB. See [`updateThreadInfo`](#updatethreadinfo-setting) setting section for details.<br>Supported values: `missing`, `when-requested`, `never`<br>Default: `missing` |
4041

42+
#### `updateThreadInfo` Setting
43+
44+
The `updateThreadInfo` setting controls when thread information is retrieved from GDB. This setting can be used with both `gdb` and `gdbtarget` debugger types.
45+
46+
Supported values:
47+
<ul>
48+
<li><code>never</code>: Thread info is never retrieved, no thread names will be displayed. Good for slow links or targets that have no thread names or are single-threaded.</li>
49+
<li><code>missing</code> (default): Thread info is retrieved when target is stopped or when thread names are missing and GDB allows retrieval while running (when using async mode locally or non-stop mode). Good for targets whose thread names/details don't change.</li>
50+
<li><code>when-requested</code>: Thread info is retrieved every time the client requests it, as far as possible (when stopped or when GDB allows while running). Good when thread names/details do change.</li>
51+
</ul>
4152

4253
### `gdbtarget` Debugger Type
4354

@@ -61,6 +72,7 @@ Launch and attach configuration settings that can be used with the `gdbtarget` d
6172
| `imageAndSymbols` | x | x | `object` | Additional settings for loading images to the target and symbols into the debugger. See section "`imageAndSymbols` object" for details.
6273
| `target` | x | x | `object` | Additional settings to configure the remote GDB target. See section "`target` object" for details. |
6374
| `customResetCommands` | x | x | `string[]` | List of GDB commands to perform a RESET of the connected target, for example through `monitor ...` commands of the connected GDB server. |
75+
| `updateThreadInfo` | x | x | `string` | Controls when thread information is retrieved from GDB. See [`updateThreadInfo`](#updatethreadinfo-setting) setting section for details.<br>Supported values: `missing`, `when-requested`, `never`<br>Default: `missing` |
6476

6577
#### `imageAndSymbols` Object
6678

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@
168168
"type": "string"
169169
},
170170
"default": []
171+
},
172+
"updateThreadInfo": {
173+
"type": "string",
174+
"enum": [
175+
"missing",
176+
"when-requested",
177+
"never"
178+
],
179+
"description": "Controls when thread information is retrieved from GDB",
180+
"default": "missing"
171181
}
172182
}
173183
},
@@ -244,6 +254,16 @@
244254
"type": "string"
245255
},
246256
"default": []
257+
},
258+
"updateThreadInfo": {
259+
"type": "string",
260+
"enum": [
261+
"missing",
262+
"when-requested",
263+
"never"
264+
],
265+
"description": "Controls when thread information is retrieved from GDB",
266+
"default": "missing"
247267
}
248268
}
249269
}
@@ -554,6 +574,16 @@
554574
}
555575
}
556576
}
577+
},
578+
"updateThreadInfo": {
579+
"type": "string",
580+
"enum": [
581+
"missing",
582+
"when-requested",
583+
"never"
584+
],
585+
"description": "Controls when thread information is retrieved from GDB",
586+
"default": "missing"
557587
}
558588
}
559589
},
@@ -770,6 +800,16 @@
770800
}
771801
}
772802
}
803+
},
804+
"updateThreadInfo": {
805+
"type": "string",
806+
"enum": [
807+
"missing",
808+
"when-requested",
809+
"never"
810+
],
811+
"description": "Controls when thread information is retrieved from GDB",
812+
"default": "missing"
773813
}
774814
}
775815
}

0 commit comments

Comments
 (0)