RTEMS | cpukit/libdebugger: Add support for TLS variables (!517)

Gedare Bloom (@gedare) gitlab at rtems.org
Tue Jun 24 20:00:03 UTC 2025




Gedare Bloom started a new discussion on cpukit/libdebugger/rtems-debugger-server.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/517#note_125171

 > +  const char **offset_str,
 > +  const char **lm_str
 > +)
 > +{
 > +  if (thread_id_str == NULL || offset_str == NULL || lm_str == NULL) {
 > +    return 1;
 > +  }
 > +
 > +  *thread_id_str = strchr((const char*) buffer, ':') + 1;
 > +  if (*thread_id_str == NULL || *thread_id_str - (char*)buffer > size) {
 > +    /* malformed packet */
 > +    return 1;
 > +  }
 > +
 > +  *offset_str = strchr(*thread_id_str, ',') + 1;
 > +  if (*offset_str == NULL || *offset_str - (char*)buffer > size) {

ditto.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/517#note_125171
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250624/fe0a7204/attachment.htm>


More information about the bugs mailing list