hanchenye-llvm-project/lldb/test/types
Greg Clayton 1f7460716b <rdar://problem/11757916>
Make breakpoint setting by file and line much more efficient by only looking for inlined breakpoint locations if we are setting a breakpoint in anything but a source implementation file. Implementing this complex for a many reasons. Turns out that parsing compile units lazily had some issues with respect to how we need to do things with DWARF in .o files. So the fixes in the checkin for this makes these changes:
- Add a new setting called "target.inline-breakpoint-strategy" which can be set to "never", "always", or "headers". "never" will never try and set any inlined breakpoints (fastest). "always" always looks for inlined breakpoint locations (slowest, but most accurate). "headers", which is the default setting, will only look for inlined breakpoint locations if the breakpoint is set in what are consudered to be header files, which is realy defined as "not in an implementation source file". 
- modify the breakpoint setting by file and line to check the current "target.inline-breakpoint-strategy" setting and act accordingly
- Modify compile units to be able to get their language and other info lazily. This allows us to create compile units from the debug map and not have to fill all of the details in, and then lazily discover this information as we go on debuggging. This is needed to avoid parsing all .o files when setting breakpoints in implementation only files (no inlines). Otherwise we would need to parse the .o file, the object file (mach-o in our case) and the symbol file (DWARF in the object file) just to see what the compile unit was.
- modify the "SymbolFileDWARFDebugMap" to subclass lldb_private::Module so that the virtual "GetObjectFile()" and "GetSymbolVendor()" functions can be intercepted when the .o file contenst are later lazilly needed. Prior to this fix, when we first instantiated the "SymbolFileDWARFDebugMap" class, we would also make modules, object files and symbol files for every .o file in the debug map because we needed to fix up the sections in the .o files with information that is in the executable debug map. Now we lazily do this in the DebugMapModule::GetObjectFile()

Cleaned up header includes a bit as well.

llvm-svn: 162860
2012-08-29 21:13:06 +00:00
..
AbstractBase.py <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
HideTestFailures.py Modify the test cases (there are a bunch of them) under test/types so that they 2011-06-22 21:15:10 +00:00
Makefile Mark these test methods to be eligible for running only under the 'darwin' platform. 2010-10-21 21:58:02 +00:00
TestFloatTypes.py The final batch of adding @dsym_test/@dwarf_test decorators. 2012-04-06 21:33:58 +00:00
TestFloatTypesExpr.py The final batch of adding @dsym_test/@dwarf_test decorators. 2012-04-06 21:33:58 +00:00
TestIntegerTypes.py The final batch of adding @dsym_test/@dwarf_test decorators. 2012-04-06 21:33:58 +00:00
TestIntegerTypesExpr.py The final batch of adding @dsym_test/@dwarf_test decorators. 2012-04-06 21:33:58 +00:00
basic_type.cpp Add comment for build_and_run_with_source_atoms_expr() and remove redundant #include from basic_type.cpp. 2012-01-10 23:36:06 +00:00
char.cpp Added 'char'/'unsigned char'/'short'/'unsigned short' to the test suite. 2010-09-24 22:54:18 +00:00
double.cpp Added "float" and "double" to types/TestBasicTypes.py. Abstracted the generic 2010-09-27 23:29:54 +00:00
float.cpp Added "float" and "double" to types/TestBasicTypes.py. Abstracted the generic 2010-09-27 23:29:54 +00:00
int.cpp Added a generic_type_tester() to the TestBasicTypes class to be used for 2010-09-23 23:35:28 +00:00
long.cpp Added two new .cpp files to be tested via TestBasicTypes.py for correct display 2010-09-24 20:41:17 +00:00
long_long.cpp Added "long long" and "unsigned long long" to the TestBasicTypes.py. 2010-09-27 20:44:46 +00:00
short.cpp Added 'char'/'unsigned char'/'short'/'unsigned short' to the test suite. 2010-09-24 22:54:18 +00:00
unsigned_char.cpp Added 'char'/'unsigned char'/'short'/'unsigned short' to the test suite. 2010-09-24 22:54:18 +00:00
unsigned_int.cpp Added two new .cpp files to be tested via TestBasicTypes.py for correct display 2010-09-24 20:41:17 +00:00
unsigned_long.cpp Added "long long" and "unsigned long long" to the TestBasicTypes.py. 2010-09-27 20:44:46 +00:00
unsigned_long_long.cpp Added "long long" and "unsigned long long" to the TestBasicTypes.py. 2010-09-27 20:44:46 +00:00
unsigned_short.cpp Added 'char'/'unsigned char'/'short'/'unsigned short' to the test suite. 2010-09-24 22:54:18 +00:00