llvm-project/lldb/source/Target
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
..
ABI.cpp Thread hardening part 3. Now lldb_private::Thread objects have std::weak_ptr 2012-02-21 00:09:25 +00:00
CPPLanguageRuntime.cpp <rdar://problem/11113279> 2012-03-26 23:03:23 +00:00
ExecutionContext.cpp Rework how the API mutex is acquired when filling out an ExecutionContext from an ExecutionContextRef, 2012-08-22 21:34:33 +00:00
LanguageRuntime.cpp Add explicit casts to bool in "shared pointer is valid" constructs that return bool. 2012-08-11 00:35:26 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Memory.cpp <rdar://problem/11193466> 2012-04-13 20:37:20 +00:00
ObjCLanguageRuntime.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
OperatingSystem.cpp Added a new plug-in type: lldb_private::OperatingSystem. The operating system 2011-08-22 02:49:39 +00:00
PathMappingList.cpp 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
Platform.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
Process.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
RegisterContext.cpp Thread hardening part 3. Now lldb_private::Thread objects have std::weak_ptr 2012-02-21 00:09:25 +00:00
SectionLoadList.cpp <rdar://problem/11620586> 2012-07-31 00:31:32 +00:00
StackFrame.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
StackFrameList.cpp <rdar://problem/11852100> 2012-07-11 20:33:48 +00:00
StackID.cpp Convert the thread plans over from using the stack count to do their logic to using StackID's. This 2012-03-01 00:50:50 +00:00
StopInfo.cpp Cope with the case where the user-supplied callbacks want the watchpoint itself to be disabled! 2012-08-23 22:28:26 +00:00
Target.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
TargetList.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
Thread.cpp Rework how the API mutex is acquired when filling out an ExecutionContext from an ExecutionContextRef, 2012-08-22 21:34:33 +00:00
ThreadList.cpp When we are preparing all threads to run, if the overall run state of a thread is "suspended" that 2012-05-31 20:47:56 +00:00
ThreadPlan.cpp If the ObjC Step Through Trampoline plan causes a target crash, properly propagate the error back to 2012-05-10 01:35:39 +00:00
ThreadPlanBase.cpp Rework how master plans declare themselves. Also make "PlanIsBasePlan" not rely only on this being the bottom plan in the stack, but allow the plan to declare itself as such. 2012-04-09 22:37:39 +00:00
ThreadPlanCallFunction.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
ThreadPlanCallUserExpression.cpp Don't try to use "OkayToDiscard" to mean BOTH this plan is a user plan or not AND unwind on error. 2012-05-11 18:43:38 +00:00
ThreadPlanRunToAddress.cpp Thread hardening part 3. Now lldb_private::Thread objects have std::weak_ptr 2012-02-21 00:09:25 +00:00
ThreadPlanShouldStopHere.cpp Make the ThreadPlanStepThrough set a backstop breakpoint on the return address from 2011-12-03 01:52:59 +00:00
ThreadPlanStepInRange.cpp 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
ThreadPlanStepInstruction.cpp Clean up the usage of "MasterPlan" status in ThreadPlans. Only user-initiated plans 2012-05-03 21:19:36 +00:00
ThreadPlanStepOut.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
ThreadPlanStepOverBreakpoint.cpp The StepOverBreakpoint plan should only explain eStopReasonTrace. It didn't cause any other exceptional stop reason. 2012-06-22 20:42:22 +00:00
ThreadPlanStepOverRange.cpp Relax the test for "is the frame I am going to step back out to the one I started from" in ThreadPlanStepOverRange so you don't 2012-07-26 18:23:21 +00:00
ThreadPlanStepRange.cpp Clean up the usage of "MasterPlan" status in ThreadPlans. Only user-initiated plans 2012-05-03 21:19:36 +00:00
ThreadPlanStepThrough.cpp If the ObjC Step Through Trampoline plan causes a target crash, properly propagate the error back to 2012-05-10 01:35:39 +00:00
ThreadPlanStepUntil.cpp Removed explicit NULL checks for shared pointers 2012-08-09 00:50:26 +00:00
ThreadPlanTracer.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
ThreadSpec.cpp When comparing a Thread against a ThreadSpec, don't fetch the Thread's Name or QueueName if the ThreadSpec doesn't specify them. 2012-03-07 22:03:04 +00:00
UnixSignals.cpp Fixed some issues with ARM backtraces by not processing any push/pop 2011-07-06 04:07:21 +00:00
UnwindAssembly.cpp Changed the emulate instruction function to take emulate options which 2011-04-26 04:39:08 +00:00