RTEMS | Backport libdebugger fix for corruption of thread registers with 32 or more threads (!1375)

Chris Johns (@chris) gitlab at rtems.org
Mon Jul 27 03:27:15 UTC 2026



Chris Johns created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1375

Project:Branches: chris/rtems:chris/6/5662-fix-libdebugger-thread-support to rtems/rtos/rtems:6
Author:   Chris Johns
Assignee: Chris Johns


## Summary

libdebugger: Fix corruption of thread registers with 32 or more threads

The block logic uses realloc to resize memory used by libdebugger when creating a snapshot of threads. Thread registers take a reference to the block and if a realloc changes the base address any references are invalid. Add rebase handler support to blocks that is called when the block base changes and add a handler to thread register blocks to rebase a thread's registers.

Exclude threads using both types of names they can have. This lets all names be reported in extra thread info packets.

Closes #5662

## Generative AI

None

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1375
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-1qx8kwaw75k4n61lie4lxz6u8-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260727/140f80ca/attachment-0001.htm>


More information about the bugs mailing list