[Lldb-commits] [lldb] [LLDB][SBSaveCore] Implement a selectable threadlist for Core Options. (PR #100443)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 24 20:44:43 PDT 2024
================
@@ -6622,7 +6623,7 @@ bool ObjectFileMachO::SaveCore(const lldb::ProcessSP &process_sp,
LC_THREAD_data.SetByteOrder(byte_order);
}
for (uint32_t thread_idx = 0; thread_idx < num_threads; ++thread_idx) {
- ThreadSP thread_sp(thread_list.GetThreadAtIndex(thread_idx));
+ ThreadSP thread_sp = thread_list.at(thread_idx);
----------------
clayborg wrote:
Replace these three lines with:
```
for (ThreadSP thread_sp : thread_list) {
```
No need to use indexes before since we have an STL container which supports iteration.
https://github.com/llvm/llvm-project/pull/100443
More information about the lldb-commits
mailing list