RTEMS | cpukit/libdebugger: Fix uninitialized variable (!1275)
Chris Johns (@chris)
gitlab at rtems.org
Mon Jun 1 22:03:30 UTC 2026
Chris Johns commented on a discussion on cpukit/libdebugger/rtems-debugger-target.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1275#note_151507
> 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 = {};
Yes I did mean something like that. It has been a while since I have looked into the detail and if you think there are other field that need to be initialized it might be good to provide a way to handle it.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1275#note_151507
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/e3aec523/attachment.htm>
More information about the bugs
mailing list