diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-02-19 17:34:26 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-02-26 16:56:07 -0600 |
commit | e200265936f6722f8c363bbdac968ee25c6c8ce1 (patch) | |
tree | d877b08b79251ac3cb6a69151b95f8725fb5985e /cpukit/libdebugger/rtems-debugger-threads.c | |
parent | getgrent.c: Fix Unchecked return value error (CID #1459004) (diff) | |
download | rtems-e200265936f6722f8c363bbdac968ee25c6c8ce1.tar.bz2 |
rtems-debugger-threads.c: Fix Unchecked return value error (CID #1468688)
CID 1468688: Unchecked return value in snapshot_thread().
Closes #4262
Diffstat (limited to '')
-rw-r--r-- | cpukit/libdebugger/rtems-debugger-threads.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libdebugger/rtems-debugger-threads.c b/cpukit/libdebugger/rtems-debugger-threads.c index 5b96e5f194..e6ffe4a080 100644 --- a/cpukit/libdebugger/rtems-debugger-threads.c +++ b/cpukit/libdebugger/rtems-debugger-threads.c @@ -170,6 +170,7 @@ snapshot_thread(rtems_tcb* tcb, void* arg) char name[RTEMS_DEBUGGER_THREAD_NAME_SIZE]; bool exclude = false; size_t i; + int sc; /* * The only time the threads pointer is NULL is a realloc error so we stop @@ -272,7 +273,8 @@ snapshot_thread(rtems_tcb* tcb, void* arg) /* * Read the target registers into the thread register array. */ - rtems_debugger_target_read_regs(thread); + sc = rtems_debugger_target_read_regs(thread); + _Assert_Unused_variable_equals(sc, 0); if (rtems_debugger_server_flag(RTEMS_DEBUGGER_FLAG_VERBOSE)) rtems_debugger_printf("rtems-db: sys: thd: %08" PRIx32 ": signal: %d\n", |