elf-core: Split up parsing code into os-specific functions
authorPavel Labath <labath@google.com>
Thu, 23 Nov 2017 10:50:34 +0000 (10:50 +0000)
committerPavel Labath <labath@google.com>
Thu, 23 Nov 2017 10:50:34 +0000 (10:50 +0000)
commitcef4119cdf7bcf8e69a62a76daa1fbf8aacaf5e4
tree37b4c85673d855b8400e43c9c6c190b728801fe5
parent771edc7949f6738bad0763fdbdd3ccef3eed18ec
elf-core: Split up parsing code into os-specific functions

Summary:
We've had a single function responsible for splitting a core segment
into notes, and parsing the notes themselves, bearing in mind variations
between 4 supported OS types. This commit splits that code into 5
pieces:
- (os-independent) code for splitting a segment into individual notes
- per-os function for parsing the notes into thread information

Reviewers: clayborg, krytarowski, emaste, alexandreyy, kettenis

Subscribers: lldb-commits

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

llvm-svn: 318903
lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
lldb/source/Plugins/Process/elf-core/ProcessElfCore.h
lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp
lldb/source/Plugins/Process/elf-core/ThreadElfCore.h
lldb/source/Plugins/Process/elf-core/elf-core-enums.h