[Lldb-commits] [lldb] [lldb][NFC] Make the target's SectionLoadList private. (PR #113278)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 22 23:22:23 PDT 2024


================
@@ -5066,3 +5066,17 @@ llvm::json::Value
 Target::ReportStatistics(const lldb_private::StatisticsOptions &options) {
   return m_stats.ToJSON(*this, options);
 }
+
+bool Target::SectionLoadListIsEmpty() const {
+  return const_cast<Target *>(this)->GetSectionLoadList().IsEmpty();
----------------
clayborg wrote:

We actually can't because `SectionLoadHistory::GetCurrentSectionLoadList()` needs to be able to create an empty section load for the special stop ID of `eStopIDNow` if the section load list is empty. I don't thing we want to change section load list to have the load list be mutable. Let me know if you disagree or have another solution?

https://github.com/llvm/llvm-project/pull/113278


More information about the lldb-commits mailing list