Skip to content

Commit f230eb1

Browse files
Zephyr support: fixed detection of stack_info and curTaskObjBase.prio (#82)
* Zephyr support: fixed detection of stack_info and curTaskObjBase.prio * updated version * Update package version from 0.0.13 to 0.0.12 reverted version inc * Updated Changelog * Updated package.json, changelog
1 parent 38dc7e8 commit f230eb1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.0.13-pre1 - Nov 17, 2025
4+
5+
- PR#82: Zephyr support: fixed detection of stack_info and curTaskObjBase.prio
6+
37
## 0.0.12-pre1 - Sep 17, 2025
48

59
- PR#75: Add support for uC/OS-III.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rtos-views",
33
"displayName": "RTOS Views",
44
"description": "RTOS views for microcontrollers",
5-
"version": "0.0.12",
5+
"version": "0.0.13",
66
"publisher": "mcu-debug",
77
"preview": true,
88
"repository": {
@@ -141,4 +141,4 @@
141141
"extensionDependencies": [
142142
"mcu-debug.debug-tracker-vscode"
143143
]
144-
}
144+
}

src/rtos/rtos-zephyr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class RTOSZEPHYR extends RTOSCommon.RTOSBase {
232232
mySetter(DisplayFields.Status, thState, thStateObject.fullData());
233233
mySetter(
234234
DisplayFields.Priority,
235-
curTaskObjBase ? parseInt(curTaskObjBase.prio.val).toString() : '???'
235+
(curTaskObjBase && curTaskObjBase.prio) ? parseInt(curTaskObjBase.prio.val).toString() : '???'
236236
);
237237

238238
if (stackInfo.stackUsed !== undefined && stackInfo.stackSize !== undefined) {
@@ -366,7 +366,7 @@ export class RTOSZEPHYR extends RTOSCommon.RTOSBase {
366366
stackInfo.stackTop = parseInt(TopOfStack);
367367

368368
/* only available with CONFIG_THREAD_STACK_INFO (optional) */
369-
if (thInfo.stack_info !== null) {
369+
if (thInfo.stack_info !== null && thInfo.stack_info !== undefined) {
370370
const stack_info = await this.getVarChildrenObj(thInfo.stack_info.ref, 'stack_info');
371371
if (stack_info !== null) {
372372
const StackSize = stack_info['size']?.val;

0 commit comments

Comments
 (0)