diff options
| author | Andrej Korman <andrejkorman@google.com> | 2021-08-31 11:52:41 +0200 |
|---|---|---|
| committer | Andy Yankovsky <werat@google.com> | 2021-08-31 13:04:38 +0200 |
| commit | aafa05e03d629cc6605718c54575256d9d683659 (patch) | |
| tree | 5ec4fd2571249c74d46a1a1de9633df9cca5394b /lldb/source/API/SBProcess.cpp | |
| parent | 9e2d14c2851269928df28a38c76d4d87536bcd49 (diff) | |
| download | llvm-aafa05e03d629cc6605718c54575256d9d683659.zip llvm-aafa05e03d629cc6605718c54575256d9d683659.tar.gz llvm-aafa05e03d629cc6605718c54575256d9d683659.tar.bz2 | |
[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.
Reviewed By: clayborg
Differential Revision: https://reviews.llvm.org/D108233
Diffstat (limited to 'lldb/source/API/SBProcess.cpp')
| -rw-r--r-- | lldb/source/API/SBProcess.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp index 47c35a2..a965814 100644 --- a/lldb/source/API/SBProcess.cpp +++ b/lldb/source/API/SBProcess.cpp @@ -1228,7 +1228,8 @@ lldb::SBError SBProcess::SaveCore(const char *file_name) { FileSpec core_file(file_name); SaveCoreStyle core_style = SaveCoreStyle::eSaveCoreFull; - error.ref() = PluginManager::SaveCore(process_sp, core_file, core_style); + error.ref() = + PluginManager::SaveCore(process_sp, core_file, core_style, ConstString()); return LLDB_RECORD_RESULT(error); } |
