[Lldb-commits] [PATCH] D134252: Track .dwo/.dwp loading errors and notify user when viewing variables.

jeffrey tan via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 19 22:38:00 PDT 2022


yinghuitan added a comment.

Do you plan to detect missing dwp file from `SymbolFileDWARF::GetDwpSymbolFile()` as well?



================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:1755-1756
         cu_die.GetAttributeValueAsString(dwarf_cu, DW_AT_comp_dir, nullptr);
     if (!comp_dir)
       return nullptr;
 
----------------
We should detect and emit this error as well, like `can't locate <dwo_file> relative to working dir or DW_AT_comp_dir`


================
Comment at: lldb/test/API/commands/frame/var/TestFrameVar.py:199
+
+        # self.assertTrue(False, exe)
+        self.assertTrue(os.path.exists(main_dwo), 'Make sure "%s" file exists' % (main_dwo))
----------------
Delete?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134252/new/

https://reviews.llvm.org/D134252



More information about the lldb-commits mailing list