Go to file
Dimitar Vlahovski 023dd64f25 Add/fix support for i386 elf core files
Summary:
There were places in the code, assuming(hardcoding) offsets
and types that were only valid for the x86_64 elf core file format.

The NT_PRSTATUS and NT_PRPSINFO structures are with the 64 bit layout.
I have reused them and parse i386 files manually, and fill them in the
same struct.

Also added some error handling during parsing that checks if the
available bytes in the buffer are enough to fill the structures.

The i386 core file test case now passes.

For reference on the structures layout, I generally used the
source of binutils (bfd, readelf)

Bug: https://llvm.org/bugs/show_bug.cgi?id=26947

Reviewers: labath

Subscribers: lldb-commits

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

llvm-svn: 277140
2016-07-29 13:18:09 +00:00
clang Make test not fail on hosts where the default omp library is gomp. 2016-07-29 13:07:09 +00:00
clang-tools-extra [clang-rename] speedup RenamingAction 2016-07-29 10:16:45 +00:00
compiler-rt tsan: Enable 48-bit VMA support on aarch64 2016-07-29 12:45:35 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Make min follow the OCL 1.0 specs 2016-07-25 22:36:22 +00:00
libcxx Add a bunch of noexcepts to char_traits and string_view. 2016-07-28 04:52:02 +00:00
libcxxabi Attempt to bring peace to -Werror buildbots. 2016-07-19 20:35:09 +00:00
libunwind [libunwind][ARM] Add support for Thumb1 targets 2016-07-25 09:21:56 +00:00
lld Remove `continue` at end of a for-loop. 2016-07-29 06:21:06 +00:00
lldb Add/fix support for i386 elf core files 2016-07-29 13:18:09 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm Re-commit: [mips][fastisel] Handle 0-4 arguments without SelectionDAG. 2016-07-29 12:27:28 +00:00
openmp Replace enum types in variadic functions by build-in types. 2016-07-22 16:05:35 +00:00
parallel-libs Add .clang-format to parallel-libs 2016-07-20 17:49:55 +00:00
polly Add missing REQUIRES line 2016-07-28 07:08:34 +00:00