Opened on 02/19/21 at 21:36:14
Closed on 02/26/21 at 22:56:29
#4262 closed defect (fixed)
rtems-debugger-threads.c: Unchecked return value error spotted by Coverity
Reported by: | Ryan Long | Owned by: | Chris Johns |
---|---|---|---|
Priority: | normal | Milestone: | 6.1 |
Component: | lib/debugger | Version: | 6 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
CID 1468688: Unchecked return value in snapshot_thread().
262 else { 263 rtems_status_code sc; 264 sc = rtems_task_suspend(id); 265 if (sc != RTEMS_SUCCESSFUL && sc != RTEMS_ALREADY_SUSPENDED) { 266 rtems_debugger_printf("error: rtems-db: thread: suspend: %08" PRIx32 ": %s\n", 267 id, rtems_status_text(sc)); 268 r = -1; 269 } 270 } 271 272 /* 273 * Read the target registers into the thread register array. 274 */ CID 1468688 (#1 of 1): Unchecked return value (CHECKED_RETURN)17. check_return: Calling rtems_debugger_target_read_regs without checking return value (as is done elsewhere 4 out of 5 times). 275 rtems_debugger_target_read_regs(thread);
Change History (1)
comment:1 Changed on 02/26/21 at 22:56:29 by Ryan Long <ryan.long@…>
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In [changeset:"e200265936f6722f8c363bbdac968ee25c6c8ce1/rtems" e2002659/rtems]: