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

Kevin Frei via lldb-commits lldb-commits at lists.llvm.org
Fri May 17 08:45:58 PDT 2024


================
@@ -117,6 +117,13 @@ class ProcessElfCore : public lldb_private::PostMortemProcess {
     lldb::addr_t end;
     lldb::addr_t file_ofs;
     std::string path;
+    lldb_private::UUID uuid; //.note.gnu.build-id
+  };
+
+  struct Section_Note {
+    uint32_t namesz;
+    uint32_t descsz;
+    uint32_t type;
----------------
kevinfrei wrote:

Move this to the ThreadElfCore.h header and add a 'parse' method to it, so the UUID is populated much like the PRPSINFO data and other useful info from the coredump.

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


More information about the lldb-commits mailing list