[lldb] Refactor CrashReason
authorDavid Spickett <david.spickett@linaro.org>
Thu, 9 Mar 2023 14:32:52 +0000 (14:32 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 15 Mar 2023 09:44:02 +0000 (09:44 +0000)
commitaf38530ee29c285f3827e33a41edf27c9c3a6767
tree640d4537786b4b7645dc95b3a285d4f49aac484d
parenta95255f9662b72c7a1121a59b4c346d0e823783f
[lldb] Refactor CrashReason

So that there is only one function that NativeThreads call,
which takes a siginfo. Everything else is an internal detail.

Reviewed By: labath, JDevlieghere

Differential Revision: https://reviews.llvm.org/D146043
lldb/source/Plugins/Process/FreeBSD/NativeThreadFreeBSD.cpp
lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
lldb/source/Plugins/Process/Linux/NativeThreadLinux.h
lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp
lldb/source/Plugins/Process/POSIX/CrashReason.cpp
lldb/source/Plugins/Process/POSIX/CrashReason.h