michi-jung opened a new pull request #5505:
URL: https://github.com/apache/incubator-nuttx/pull/5505


   If attaching to a target that is already running JLinkGDBServer calls
   RTOS_GetNumThreads() without a prior call to RTOS_UpdateThreads().  So
   do this within RTOS_GetNumThreads() if g_plugin_priv.ntcb has not yet
   been initialized.
   
   Note: If after attaching the debugger to the target, the target is
   resumed and then stopped again, the RTOS_UpdateThreads is actually
   called.  Thus, we are not running on stale thread data in this case.
   
   I also changed PLUGIN_VER to API_VER and its value to 101, as
   RTOS_GetVersion() does not query the version of the plugin, but the API
   version implemented by the plugin, which in our case is 1.1.
   
   Signed-off-by: Michael Jung <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to