File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ Note that currently ELF Core files are not supported."
63
63
Get an SBThreadCollection of all threads marked to be saved. This collection is not sorted according to insertion order."
64
64
) lldb::SBSaveCoreOptions::GetThreadsToSave;
65
65
66
+ %feature(" docstring" , "
67
+ Get the current total number of bytes the core is expectd to have, excluding the overhead of the core file format.
68
+ Requires both a Process and a Style to be specified."
69
+ ) lldb::SBSaveCoreOptions::GetCurrentSizeInBytes;
70
+
66
71
%feature(" docstring" , "
67
72
Unset all options."
68
73
) lldb::SBSaveCoreOptions::Clear;
Original file line number Diff line number Diff line change @@ -116,14 +116,16 @@ void SBSaveCoreOptions::Clear() {
116
116
117
117
uint64_t SBSaveCoreOptions::GetCurrentSizeInBytes (SBError &error) {
118
118
LLDB_INSTRUMENT_VA (this , error);
119
- llvm::Expected<uint64_t > expected_bytes = m_opaque_up->GetCurrentSizeInBytes ();
119
+ llvm::Expected<uint64_t > expected_bytes =
120
+ m_opaque_up->GetCurrentSizeInBytes ();
120
121
if (!expected_bytes) {
121
- error = SBError (lldb_private::Status::FromError (expected_bytes.takeError ()));
122
+ error =
123
+ SBError (lldb_private::Status::FromError (expected_bytes.takeError ()));
122
124
return 0 ;
123
125
}
124
126
// Clear the error, so if the clearer uses it we set it to success.
125
127
error.Clear ();
126
- return *expected_bytes;
128
+ return *expected_bytes;
127
129
}
128
130
129
131
lldb_private::SaveCoreOptions &SBSaveCoreOptions::ref () const {
Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ llvm::Expected<uint64_t> SaveCoreOptions::GetCurrentSizeInBytes() {
150
150
if (!m_process_sp)
151
151
return Status::FromErrorString (" Requires a process to be set." ).takeError ();
152
152
153
-
154
153
error = EnsureValidConfiguration (m_process_sp);
155
154
if (error.Fail ())
156
155
return error.takeError ();
You can’t perform that action at this time.
0 commit comments