diff --git a/scripts/west_commands/runners/openocd.py b/scripts/west_commands/runners/openocd.py index 0346935a22e57f..ff92d4f58f452b 100644 --- a/scripts/west_commands/runners/openocd.py +++ b/scripts/west_commands/runners/openocd.py @@ -356,6 +356,11 @@ def do_debugserver(self, **kwargs): pre_init_cmd.append("-c") pre_init_cmd.append(i) + if self.thread_info_enabled and self.supports_thread_info(): + pre_init_cmd.append("-c") + rtos_command = '${} configure -rtos Zephyr'.format(self.target_handle) + pre_init_cmd.append(rtos_command) + cmd = (self.openocd_cmd + self.cfg_cmd + ['-c', 'tcl_port {}'.format(self.tcl_port), '-c', 'telnet_port {}'.format(self.telnet_port),