[all-commits] [llvm/llvm-project] eee687: [lldb] Add minidump save-core functionality to ELF...

Andrej Korman via All-commits all-commits at lists.llvm.org
Wed Sep 1 06:19:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eee687a66d76bf0b6e3746f7b8d09b0d871bff27
      https://github.com/llvm/llvm-project/commit/eee687a66d76bf0b6e3746f7b8d09b0d871bff27
  Author: Andrej Korman <andrejkorman at google.com>
  Date:   2021-09-01 (Wed, 01 Sep 2021)

  Changed paths:
    M lldb/include/lldb/Core/PluginManager.h
    M lldb/source/API/SBProcess.cpp
    M lldb/source/Commands/CommandObjectProcess.cpp
    M lldb/source/Commands/Options.td
    M lldb/source/Core/PluginManager.cpp
    M lldb/source/Plugins/ObjectFile/CMakeLists.txt
    A lldb/source/Plugins/ObjectFile/Minidump/CMakeLists.txt
    A lldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.cpp
    A lldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.h
    A lldb/source/Plugins/ObjectFile/Minidump/ObjectFileMinidump.cpp
    A lldb/source/Plugins/ObjectFile/Minidump/ObjectFileMinidump.h
    A lldb/test/API/functionalities/process_save_core_minidump/Makefile
    A lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
    A lldb/test/API/functionalities/process_save_core_minidump/main.cpp

  Log Message:
  -----------
  [lldb] Add minidump save-core functionality to ELF object files

This change adds save-core functionality into the ObjectFileELF that enables
saving minidump of a stopped process. This change is mainly targeting Linux
running on x86_64 machines. Minidump should contain basic information needed
to examine state of threads, local variables and stack traces. Full support
for other platforms is not so far implemented. API tests are using LLDB's
MinidumpParser.

This relands commit aafa05e, reverted in 1f986f6.
Failed tests were fixed.

Reviewed By: clayborg

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




More information about the All-commits mailing list