Track which modules have debug info variable errors.
authorGreg Clayton <gclayton@fb.com>
Fri, 23 Sep 2022 00:54:06 +0000 (17:54 -0700)
committerGreg Clayton <gclayton@fb.com>
Wed, 28 Sep 2022 22:39:54 +0000 (15:39 -0700)
commit8f8935139adf44584634d4bacd35e3eee3f648a5
tree743ddd8092d1793d879f7edb47e70c4000ab7c8f
parent15f83ab77502cb2bd405a091cf419536e1d41381
Track which modules have debug info variable errors.

Now that we display an error when users try to get variables, but something in the debug info is preventing variables from showing up, track this with a new bool in each module's statistic information named "debugInfoHadVariableErrors".

This patch modifies the code to track when we have variable errors in a module and adds accessors to get/set this value. This value is used in the module statistics and we added a test to verify this value gets set correctly.

Differential Revision: https://reviews.llvm.org/D134508
lldb/include/lldb/Symbol/SymbolFile.h
lldb/include/lldb/Symbol/SymbolFileOnDemand.h
lldb/include/lldb/Target/Statistics.h
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h
lldb/source/Target/Statistics.cpp
lldb/test/API/commands/statistics/basic/TestStats.py