RTEMS | cpukit/libdebugger: Fix uninitialized variable (!1275)

Chris Johns (@chris) gitlab at rtems.org
Mon Jun 1 01:47:04 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_151434

 >    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 = {};

@jjl77 is it worth adding an init call to set some of the other uninitialized fields?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1275#note_151434
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/15ff9a1f/attachment.htm>


More information about the bugs mailing list