[lldb] [Process] Add proper support for NetBSD core files with threads
authorMichal Gorny <mgorny@gentoo.org>
Fri, 8 Mar 2019 21:10:43 +0000 (21:10 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Fri, 8 Mar 2019 21:10:43 +0000 (21:10 +0000)
commitc12f159788dcc791e4a415352031fb761f31c3ec
tree6bbcdf3a3a43fd093a4d92c6b9a01205acf01946
parent7a462ab7ae7d4fe45eace5942519bf305391e11f
[lldb] [Process] Add proper support for NetBSD core files with threads

Improve the support for processing NetBSD cores.  Fix reading process
identifier, thread information and associating the terminating signal
with the correct thread.

Includes test cases for single-threaded program receiving SIGSEGV,
and two dual-threaded programs: one where thread receives the signal,
and the other one when the whole process is signalled.

Differential Revision: https://reviews.llvm.org/D32149

llvm-svn: 355736
13 files changed:
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64 [new file with mode: 0755]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64.core [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.c [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64 [new file with mode: 0755]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64.core [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.c [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64 [new file with mode: 0755]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64.core [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.c [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/GNUmakefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/TestNetBSDCore.py [new file with mode: 0644]
lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
lldb/source/Plugins/Process/elf-core/RegisterUtilities.h