hanchenye-llvm-project/lldb/source/Target
Greg Clayton e372b98d18 Many GDB users always want to display disassembly when they stop by using
something like "display/4i $pc" (or something like this). With LLDB we already
were showing 3 lines of source before and 3 lines of source after the current
source line when showing a stop context. We now improve this by allowing the
user to control the number of lines with the new "stop-line-count-before" and
"stop-line-count-after" settings. Also, there is a new setting for how many
disassembly lines to show: "stop-disassembly-count". This will control how many
source lines are shown when there is no source or when we have no source line
info. 

settings set stop-line-count-before 3
settings set stop-line-count-after 3
settings set stop-disassembly-count 4
settings set stop-disassembly-display no-source

The default values are set as shown above and allow 3 lines of source before 
and after (what we used to do) the current stop location, and will display 4 
lines of disassembly if the source is not available or if we have no debug
info. If both "stop-source-context-before" and "stop-source-context-after" are
set to zero, this will disable showing any source when stopped. The 
"stop-disassembly-display" setting is an enumeration that allows you to control
when to display disassembly. It has 3 possible values:

"never" - never show disassembly no matter what
"no-source" - only show disassembly when there is no source line info or the source files are missing
"always" - always show disassembly.

llvm-svn: 145050
2011-11-21 21:44:34 +00:00
..
ABI.cpp Added a new plug-in type: lldb_private::OperatingSystem. The operating system 2011-08-22 02:49:39 +00:00
CPPLanguageRuntime.cpp Move the responsibility for translating the various eFunctionNameType lookups to the 2011-10-07 22:23:45 +00:00
ExecutionContext.cpp Converted the lldb_private::Process over to use the intrusive 2011-09-22 04:58:26 +00:00
LanguageRuntime.cpp
Makefile
Memory.cpp
ObjCLanguageRuntime.cpp Changed lldb_private::Type over to use the intrusive ref counted pointers 2011-10-18 23:36:41 +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
Platform.cpp Use a pseudoterminal for local processes if no STDIO redirection or other 2011-11-17 22:14:31 +00:00
Process.cpp Looking at our memory usage with Instruments when debugging a large application 2011-11-18 04:43:59 +00:00
RegisterContext.cpp
SectionLoadList.cpp
StackFrame.cpp Many GDB users always want to display disassembly when they stop by using 2011-11-21 21:44:34 +00:00
StackFrameList.cpp Fixed the Xcode project building of LLVM to be a bit more user friendly: 2011-11-04 03:34:56 +00:00
StackID.cpp Moved lldb::user_id_t values to be 64 bit. This was going to be needed for 2011-10-19 18:09:39 +00:00
StopInfo.cpp Do a better job of detecting when a breakpoint command has set the target running again (except you have to ignore 2011-11-08 03:00:11 +00:00
Target.cpp I made the ClangASTImporter owned by the target 2011-11-16 18:20:47 +00:00
TargetList.cpp Cleaned up many error codes. For any who is filling in error strings into 2011-10-26 00:56:27 +00:00
Thread.cpp Moved lldb::user_id_t values to be 64 bit. This was going to be needed for 2011-10-19 18:09:39 +00:00
ThreadList.cpp Moved lldb::user_id_t values to be 64 bit. This was going to be needed for 2011-10-19 18:09:39 +00:00
ThreadPlan.cpp Moved lldb::user_id_t values to be 64 bit. This was going to be needed for 2011-10-19 18:09:39 +00:00
ThreadPlanBase.cpp Moved lldb::user_id_t values to be 64 bit. This was going to be needed for 2011-10-19 18:09:39 +00:00
ThreadPlanCallFunction.cpp Enhanced the ObjC DynamicCheckerFunction to test for "object responds to selector" as well as 2011-11-01 02:46:54 +00:00
ThreadPlanCallUserExpression.cpp Enhanced the ObjC DynamicCheckerFunction to test for "object responds to selector" as well as 2011-11-01 02:46:54 +00:00
ThreadPlanRunToAddress.cpp Using the wrong type for the break id's (user_id_t is an unsigned int, but internal breakpoints can be negative, and anyway it is a good idea to use break_id_t for breakpoints, no?) 2011-11-10 01:12:26 +00:00
ThreadPlanShouldStopHere.cpp
ThreadPlanStepInRange.cpp Make the step range plans capable of supporting multiple ranges. Also make their constructors public, there isn't any good reason why you shouldn't be able to make these plans. 2011-10-15 00:24:48 +00:00
ThreadPlanStepInstruction.cpp
ThreadPlanStepOut.cpp Make "next" and "step-out" work when in stepping over or out of inlined functions. 2011-10-15 00:57:28 +00:00
ThreadPlanStepOverBreakpoint.cpp Moved lldb::user_id_t values to be 64 bit. This was going to be needed for 2011-10-19 18:09:39 +00:00
ThreadPlanStepOverRange.cpp Make the step range plans capable of supporting multiple ranges. Also make their constructors public, there isn't any good reason why you shouldn't be able to make these plans. 2011-10-15 00:24:48 +00:00
ThreadPlanStepRange.cpp Make the step range plans capable of supporting multiple ranges. Also make their constructors public, there isn't any good reason why you shouldn't be able to make these plans. 2011-10-15 00:24:48 +00:00
ThreadPlanStepThrough.cpp
ThreadPlanStepUntil.cpp Update declarations for all functions/methods that accept printf-style 2011-09-20 21:44:10 +00:00
ThreadPlanTestCondition.cpp Converted the lldb_private::Process over to use the intrusive 2011-09-22 04:58:26 +00:00
ThreadPlanTracer.cpp We were leaking a stack frame in StackFrameList in Thread.cpp which could 2011-08-12 21:40:01 +00:00
ThreadSpec.cpp Update declarations for all functions/methods that accept printf-style 2011-09-20 21:44:10 +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