[Lldb-commits] [PATCH] D125325: Pass plugin_name in SBProcess::SaveCore
Levon Ter-Grigoryan via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed May 11 00:48:26 PDT 2022
PatriosTheGreat updated this revision to Diff 428577.
PatriosTheGreat edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125325/new/
https://reviews.llvm.org/D125325
Files:
lldb/bindings/interface/SBProcess.i
lldb/include/lldb/API/SBProcess.h
lldb/source/API/SBProcess.cpp
Index: lldb/source/API/SBProcess.cpp
===================================================================
--- lldb/source/API/SBProcess.cpp
+++ lldb/source/API/SBProcess.cpp
@@ -1138,6 +1138,12 @@
lldb::SBError SBProcess::SaveCore(const char *file_name) {
LLDB_INSTRUMENT_VA(this, file_name);
+ return SaveCore(file_name, "");
+}
+
+lldb::SBError SBProcess::SaveCore(const char *file_name,
+ const char *plugin_name) {
+ LLDB_INSTRUMENT_VA(this, file_name, plugin_name);
lldb::SBError error;
ProcessSP process_sp(GetSP());
@@ -1156,7 +1162,8 @@
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,
+ plugin_name);
return error;
}
Index: lldb/include/lldb/API/SBProcess.h
===================================================================
--- lldb/include/lldb/API/SBProcess.h
+++ lldb/include/lldb/API/SBProcess.h
@@ -338,6 +338,9 @@
bool IsInstrumentationRuntimePresent(InstrumentationRuntimeType type);
/// Save the state of the process in a core file (or mini dump on Windows).
+ lldb::SBError SaveCore(const char *file_name, const char *plugin_name);
+
+ // Save the state of the process with the default plugin.
lldb::SBError SaveCore(const char *file_name);
/// Query the address load_addr and store the details of the memory
Index: lldb/bindings/interface/SBProcess.i
===================================================================
--- lldb/bindings/interface/SBProcess.i
+++ lldb/bindings/interface/SBProcess.i
@@ -397,6 +397,9 @@
bool
IsInstrumentationRuntimePresent(lldb::InstrumentationRuntimeType type);
+ lldb::SBError
+ SaveCore(const char *file_name, const char *plugin_name);
+
lldb::SBError
SaveCore(const char *file_name);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125325.428577.patch
Type: text/x-patch
Size: 1987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220511/55c7bbe8/attachment.bin>
More information about the lldb-commits
mailing list