Add ELF program and section headers to core dump. (#12425)
authorMike McLaughlin <mikem@microsoft.com>
Fri, 23 Jun 2017 22:02:36 +0000 (15:02 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2017 22:02:36 +0000 (15:02 -0700)
commit619334db7e5595888e6409570750ccffe4c4c126
tree777e8b932afa4abfaf557461daa41cb85d40ae8a
parent3a24095610ecaba62495740bf8319ad467af4997
Add ELF program and section headers to core dump. (#12425)

Add ELF program and section headers to core dump.

Issue #12341

This allows the build id for the modules be extracted properly.

Add .eh_frame, .eh_frame_hdr and some other important sections to core dump.

Add managed module names to core dump so the symbol acquisition
tool can get symbol store keys for them.

Add the non memory/file backed memory regions to core dump so debuggers
like lldb can check if an address is "code" or not. Unwinding doesn't
work when there isn't a module/.so file present.
src/debug/createdump/crashinfo.cpp
src/debug/createdump/crashinfo.h
src/debug/createdump/createdump.h
src/debug/createdump/dumpwriter.cpp
src/debug/createdump/dumpwriter.h
src/debug/createdump/memoryregion.h
src/debug/createdump/threadinfo.cpp
src/pal/src/thread/process.cpp