xref: /llvm-project/lldb/bindings/interface/SBSaveCoreOptionsDocstrings.i (revision e2005d1461942539f7533a518aa78017074f6bf9)
1*e2005d14SJacob Lalonde %feature("docstring",
2*e2005d14SJacob Lalonde "A container to specify how to save a core file.
3*e2005d14SJacob Lalonde 
4*e2005d14SJacob Lalonde SBSaveCoreOptions includes API's to specify the memory regions and threads to include
5*e2005d14SJacob Lalonde when generating a core file. It extends the existing SaveCoreStyle option.
6*e2005d14SJacob Lalonde 
7*e2005d14SJacob Lalonde * eSaveCoreFull will save off all thread and memory regions, ignoring the memory regions and threads in
8*e2005d14SJacob Lalonde the options object.
9*e2005d14SJacob Lalonde 
10*e2005d14SJacob Lalonde * eSaveCoreDirtyOnly pages will capture all threads and all rw- memory regions, in addition to the regions specified
11*e2005d14SJacob Lalonde in the options object if they are not already captured.
12*e2005d14SJacob Lalonde 
13*e2005d14SJacob Lalonde * eSaveCoreStackOnly will capture all threads, but no memory regions unless specified.
14*e2005d14SJacob Lalonde 
15*e2005d14SJacob Lalonde * eSaveCoreCustomOnly Custom defers entirely to the SBSaveCoreOptions object and will only save what is specified.
16*e2005d14SJacob Lalonde   Picking custom and specifying nothing will result in an error being returned.
17*e2005d14SJacob Lalonde 
18*e2005d14SJacob Lalonde Note that currently ELF Core files are not supported."
19*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions;
20*e2005d14SJacob Lalonde 
21*e2005d14SJacob Lalonde %feature("docstring", "
22*e2005d14SJacob Lalonde     Set the plugin name to save a Core file with. Only plugins registered with Plugin manager will be accepted
23*e2005d14SJacob Lalonde     Examples are Minidump and Mach-O."
24*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::SetPluginName;
25*e2005d14SJacob Lalonde 
26*e2005d14SJacob Lalonde %feature("docstring", "
27*e2005d14SJacob Lalonde     Get the specified plugin name, or None if the name is not set."
28*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::GetPluginName;
29*e2005d14SJacob Lalonde 
30*e2005d14SJacob Lalonde %feature("docstring", "
31*e2005d14SJacob Lalonde     Set the lldb.SaveCoreStyle."
32*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::SetStyle;
33*e2005d14SJacob Lalonde 
34*e2005d14SJacob Lalonde %feature("docstring", "
35*e2005d14SJacob Lalonde     Get the specified lldb.SaveCoreStyle, or eSaveCoreUnspecified if not set."
36*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::GetStyle;
37*e2005d14SJacob Lalonde 
38*e2005d14SJacob Lalonde %feature("docstring", "
39*e2005d14SJacob Lalonde     Set the file path to save the Core file at."
40*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::SetOutputFile;
41*e2005d14SJacob Lalonde 
42*e2005d14SJacob Lalonde %feature("docstring", "
43*e2005d14SJacob Lalonde     Get an SBFileSpec corresponding to the specified output path, or none if not set."
44*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::GetOutputFile;
45*e2005d14SJacob Lalonde 
46*e2005d14SJacob Lalonde %feature("docstring", "
47*e2005d14SJacob Lalonde     Set the process to save, or unset a process by providing a default SBProcess.
48*e2005d14SJacob Lalonde     Resetting will result in the reset of all process specific options, such as Threads to save."
49*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::SetProcess;
50*e2005d14SJacob Lalonde 
51*e2005d14SJacob Lalonde %feature("docstring", "
52*e2005d14SJacob Lalonde     Add an SBThread to be saved, an error will be returned if an SBThread from a different process is specified.
53*e2005d14SJacob Lalonde     The process is set either by the first SBThread added to the options container, or explicitly by the SetProcess call."
54*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::AddThread;
55*e2005d14SJacob Lalonde 
56*e2005d14SJacob Lalonde %feature("docstring", "
57*e2005d14SJacob Lalonde     Remove an SBthread if present in the container, returns true if a matching thread was found and removed."
58*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::RemoveThread;
59*e2005d14SJacob Lalonde 
60*e2005d14SJacob Lalonde %feature("docstring", "
61*e2005d14SJacob Lalonde     Add a memory region to save, an error will be returned in the region is invalid.
62*e2005d14SJacob Lalonde     Ranges that overlap will be unioned into a single region."
63*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::AddMemoryRegionToSave;
64*e2005d14SJacob Lalonde 
65*e2005d14SJacob Lalonde %feature("docstring", "
66*e2005d14SJacob Lalonde     Get an SBThreadCollection of all threads marked to be saved. This collection is not sorted according to insertion order."
67*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::GetThreadsToSave;
68*e2005d14SJacob Lalonde 
69*e2005d14SJacob Lalonde %feature("docstring", "
70*e2005d14SJacob Lalonde     Unset all options."
71*e2005d14SJacob Lalonde ) lldb::SBSaveCoreOptions::Clear;
72