[Lldb-commits] [lldb] Read and store gnu build id from loaded core file (PR #92492)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri May 24 10:46:23 PDT 2024


================
@@ -271,6 +275,14 @@ Status ProcessElfCore::DoLoadCore() {
   return error;
 }
 
+void ProcessElfCore::UpdateBuildIdForNTFileEntries() {
+  if (!m_nt_file_entries.empty()) {
----------------
labath wrote:

No need to explicitly check for emptyness. The loop will naturally do nothing if the array is empty.

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


More information about the lldb-commits mailing list