Skip to content

Commit 74a637d

Browse files
committed
Gdbserver: set command context's initial selected core to the gdbserver's core.
1 parent dce7b12 commit 74a637d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyocd/gdbserver/gdbserver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ def _init_remote_commands(self):
261261
"""! @brief Initialize the remote command processor infrastructure."""
262262
# Create command execution context. The output stream will default to stdout
263263
# but we'll change it to a fresh StringIO prior to running each command.
264+
#
265+
# Note we also modify the selected_core property so it is initially set to the gdbserver's core.
264266
self._command_context = CommandExecutionContext()
267+
self._command_context.selected_core = self.target
265268
self._command_context.attach_session(self.session)
266269

267270
# Add the gdbserver command group.

0 commit comments

Comments
 (0)