RTEMS | cpukit/libdebugger: Fix uninitialized variable (!1275)
Wayne Thornton (@wmthornton-dev)
gitlab at rtems.org
Mon Jun 1 01:40:53 UTC 2026
Wayne Thornton commented on a discussion on cpukit/libdebugger/rtems-debugger-target.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1275#note_151429
> rtems_debugger_target* target = rtems_debugger->target;
> Thread_Control* thread = _Thread_Get_executing();
> const rtems_id tid = thread->Object.id;
> - rtems_debugger_thread fake_debugger_thread;
> + rtems_debugger_thread fake_debugger_thread = {};
Thanks for making that change and responding as quickly as you did. In general, I would prefer to keep the final output as small as possible, even if it is only 36-bytes. That being said, it does appear that you're right about it not being a hot path. @chris what are your thoughts on this?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1275#note_151429
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/20260601/1b24535f/attachment-0001.htm>
More information about the bugs
mailing list