summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-profdata/llvm-profdata.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-07-22 12:18:45 +0000
committerPavel Labath <labath@google.com>2016-07-22 12:18:45 +0000
commit4e6fad576045c927445e3921d10882be05fd8e72 (patch)
tree92b49f92c2f0c6fb9a2814353bb830db9dee0169 /llvm/tools/llvm-profdata/llvm-profdata.cpp
parent5ba0e203153ce2cc76d3afc4c5acaae4ed83a3c2 (diff)
downloadbcm5719-llvm-4e6fad576045c927445e3921d10882be05fd8e72.tar.gz
bcm5719-llvm-4e6fad576045c927445e3921d10882be05fd8e72.zip
Fixing layout of elf-core file related structures
Summary: The binary layout of prstatus and prpsinfo was wrong. Some of the member variables where not aligned properly and others where with a wrong type (e.g. the time related stuff in prstatus). I used the structs defined in bfd in binutils to see what the layout of the elf-core format in these section is. (https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=bfd/hosts/x86-64linux.h;h=4e420a1f2081dd3b51f5d6b7a8e4093580f5cdb5;hb=master) Note: those structures are only for x86 64 bit elf-core files This shouldn't have any impact on the functionality, because lldb actually uses only a few of the member variables of those structs and they are with a correct type and alignment. I found this while trying to add/fix the support for i386 core files (https://llvm.org/bugs/show_bug.cgi?id=26947) Reviewers: labath Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D22628 Author: Dimitar Vlahovski <dvlahovski@google.com> llvm-svn: 276406
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud