aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2023-05-22 15:43:26 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2023-05-22 15:54:19 -0500
commit916e9be4aa0aa4bfa3ab0f1b3f91e59b81dc10b2 (patch)
tree25b6127b6482d73fc740944b51755cefdb2fb72d /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
parent6a185718d4a29d17a389d0c50419e7e36ac3c866 (diff)
downloadllvm-916e9be4aa0aa4bfa3ab0f1b3f91e59b81dc10b2.zip
llvm-916e9be4aa0aa4bfa3ab0f1b3f91e59b81dc10b2.tar.gz
llvm-916e9be4aa0aa4bfa3ab0f1b3f91e59b81dc10b2.tar.bz2
Cleanup code in `thread_exit`
1) Avoid proper function calls and referencing local variables after the stack has been deallocated. A proper function call/return or local variable reference that may have spilled will cause invalid memory reads after the stack has been deallocated. 2) Mark the function as [[noreturn]] and place `__builtin_unreachable()` after the `SYS_exit` syscalls. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D151142
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions