hanchenye-llvm-project/lldb/test
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
..
api/check_public_api_headers Make the test suite work again on Mac OS X without the LLDB_BUILD_TYPE env var 2012-05-30 05:40:23 +00:00
arm_emulation <rdar://problem/11358639> 2012-05-08 01:45:38 +00:00
attic Move two files to the 'attic'. 2010-10-05 00:08:08 +00:00
benchmarks Test file renaming. 2012-04-23 17:54:40 +00:00
example
expression_command Make issue_11588/Test11588 work with a recent swig that converts ints to PyLongObjects 2012-05-11 20:37:34 +00:00
functionalities <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
help Reimplemented the code that backed the "settings" in lldb. There were many issues with the previous implementation: 2012-08-22 17:17:09 +00:00
lang <rdar://problem/11505459> Stripping off the object's type from the output of the 'po' command 2012-08-09 16:51:25 +00:00
logging Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
macosx <rdar://problem/11358639> 2012-05-08 01:45:38 +00:00
make Add a suffix rule for compiling objc++ files and a sample directory under test/lang/objcxx. 2012-04-24 23:05:07 +00:00
pexpect-2.4 Add pexpect-2.4 (a pure Python module for controlling and automating other programs) to the test directory. 2011-03-11 20:13:06 +00:00
plugins Fix the wrong comment in TestUUIDMismatchWarnings.py. 2012-08-20 22:36:58 +00:00
python_api Added SBDebugger's log callbacks to Python-land 2012-08-25 00:29:07 +00:00
settings Reimplemented the code that backed the "settings" in lldb. There were many issues with the previous implementation: 2012-08-22 17:17:09 +00:00
source-manager Make git not delete some empty dirs. Otherwise a git checkout would be different from an svn checkout. 2012-07-25 10:34:53 +00:00
terminal Continue the cleanup started on r158737 2012-06-20 10:13:40 +00:00
types <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
unittest2
warnings/uuid rdar://problem/11324515 2012-08-22 00:18:43 +00:00
Makefile Update the Makefile to expect the lldb package 2012-05-29 14:06:40 +00:00
README-TestSuite Add some descriptions about the default executable name being 'a.out' and can be overwritten 2011-07-28 21:15:39 +00:00
bench-history Add bench entries. 2011-11-29 19:13:38 +00:00
bench.py Establish a baseline for bench.py score by using a fixed lldb executable as the 2011-10-26 22:58:02 +00:00
blacklist.py Don't set DYLD_LIBRARY_PATH in the Python environment (which will get passed down to 2011-08-03 17:41:28 +00:00
dosep.ty Remove invalid docstring (due to cut-and-paste error). 2011-11-16 18:48:48 +00:00
dotest.py Fix wrong directory pathname. 2012-08-22 17:53:02 +00:00
lldbbench.py Tests decorated with @benchmarks_test do not participate in the remote-macosx test suite run. 2012-04-19 23:50:00 +00:00
lldbtest.py Silence the "Command ... failed!" message when not running in trace mode. 2012-08-01 19:56:04 +00:00
lldbutil.py Fix a wrong variable name. 2012-07-06 16:20:13 +00:00
redo.py Take '--help' as well as '-h' as hint to emit the usage output. 2012-08-23 23:45:26 +00:00