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

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Jun 25 11:43:00 UTC 2025




Kinsey Moore commented on a discussion on cpukit/libdebugger/rtems-debugger-server.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/517#note_125286

 > +}
 > +
 > +static int
 > +parse_get_tls_addr(
 > +  uint8_t* buffer,
 > +  int size,
 > +  const char **thread_id_str,
 > +  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;

I have refactored this to move the +1 to after the failure check for all packet parsing.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/517#note_125286
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/20250625/bd0aa84a/attachment-0001.htm>


More information about the bugs mailing list