[Lldb-commits] [PATCH] D146044: [lldb] Implement CrashReason using UnixSignals
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 14 06:37:04 PDT 2023
DavidSpickett created this revision.
Herald added subscribers: krytarowski, arichardson, emaste.
Herald added a project: All.
DavidSpickett requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
By adding signal codes to UnixSignals and adding a new function
where you can get a string with optional address and bounds.
Added signal codes to the Linux, FreeBSD and NetBSD signal sets.
I've checked the numbers against the relevant sources.
Each signal code has a code number, description and printing options.
By default you just get the descripton, you can opt into adding either
a fault address or bounds information.
Bounds signals we'll use the description, unless we have the bounds
values in which case we say whether it is an upper or lower bound
issue.
GetCrashReasonString remains in CrashReason because we need it to
be compiled only for platforms with siginfo_t. Ideally it would
move into NativeProcessProtocol, but that is also used
by NativeRegisterContextWindows, where there would be no siginfo_t.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146044
Files:
lldb/include/lldb/Target/UnixSignals.h
lldb/source/Plugins/Process/POSIX/CrashReason.cpp
lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
lldb/source/Plugins/Process/Utility/LinuxSignals.cpp
lldb/source/Plugins/Process/Utility/NetBSDSignals.cpp
lldb/source/Target/UnixSignals.cpp
lldb/unittests/Signals/UnixSignalsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146044.505074.patch
Type: text/x-patch
Size: 39373 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230314/9f493159/attachment-0001.bin>
More information about the lldb-commits
mailing list