[all-commits] [llvm/llvm-project] a33983: Pass plugin_name in SBProcess::SaveCore

Tobias Hieta via All-commits all-commits at lists.llvm.org
Thu Jun 9 07:30:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a33983729df641559b639a48d1b65e2de55f6e90
      https://github.com/llvm/llvm-project/commit/a33983729df641559b639a48d1b65e2de55f6e90
  Author: Levon <patriosthegreat at protonmail.ch>
  Date:   2022-06-09 (Thu, 09 Jun 2022)

  Changed paths:
    M lldb/bindings/interface/SBProcess.i
    M lldb/include/lldb/API/SBProcess.h
    M lldb/source/API/SBProcess.cpp
    M lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py

  Log Message:
  -----------
  Pass plugin_name in SBProcess::SaveCore

This CL allows to use minidump save-core functionality (https://reviews.llvm.org/D108233) via SBProcess interface.
After adding a support from gdb-remote client (https://reviews.llvm.org/D101329) if the plugin name is empty the plugin manager will try to save the core directly from the process plugin.
See https://github.com/llvm/llvm-project/blob/main/lldb/source/Core/PluginManager.cpp#L696

To have an ability to save the core with minidump plugin I added plugin name as a parameter in SBProcess::SaveCore.

Reviewed By: clayborg

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




More information about the All-commits mailing list