hanchenye-llvm-project/lldb/scripts/interface
Jason Molenda 6ab659a922 First part of an attempt to indicate to the user when they are
debugging optimized code.  Adds new methods on Function/SBFunction
to query whether a given function is optimized.  Adds a new
function.is-optimized format entity and changes the default 
frame-format to append "[opt]" if the function was built with
optimization.

The only indication that a binary was built with optimization
that we have right now is the presence of the DW_AT_APPLE_optimized
attribute (DW_FORM_flag value 1) in the DW_TAG_compile_unit.
The absence of this flag may mean that the compile_unit was not
compiled with optimization, or it may mean that the producer 
does not generate this attribute.

Currently this only works for dSYM debugging.  When we create
the CompileUnit with dwarf-in-.o-file debugging we don't have
the attribute value yet so it's not set.  I need to find the
flag value when we do start to read the .o file DWARF and 
set the CompileUnit's status at that point - but haven't 
done it yet.

I'm also going to add a mechanism for issuing warnings to users
such that they're only issued once in a debug session and 
there is away for users to suppress these warnings altogether
via .lldbinit file settings.  But I want to get this changeset
committed now that it's at a useful state.

<rdar://problem/19281172> 

llvm-svn: 243508
2015-07-29 00:42:47 +00:00
..
SBAddress.i
SBAttachInfo.i
SBBlock.i
SBBreakpoint.i
SBBreakpointLocation.i
SBBroadcaster.i
SBCommandInterpreter.i
SBCommandReturnObject.i
SBCommunication.i
SBCompileUnit.i
SBData.i
SBDebugger.i
SBDeclaration.i
SBError.i
SBEvent.i
SBExecutionContext.i
SBExpressionOptions.i Allow expresions to have unique expression prefixes: 2015-05-27 22:32:39 +00:00
SBFileSpec.i
SBFileSpecList.i
SBFrame.i Add a GetDisplayName() API to SBFrame, SBFunction and SBSymbol 2015-07-06 18:28:46 +00:00
SBFunction.i First part of an attempt to indicate to the user when they are 2015-07-29 00:42:47 +00:00
SBHostOS.i
SBInstruction.i
SBInstructionList.i
SBLanguageRuntime.i
SBLaunchInfo.i
SBLineEntry.i
SBListener.i
SBModule.i
SBModuleSpec.i
SBPlatform.i Refactor Unix signals. 2015-07-14 01:09:28 +00:00
SBProcess.i Fix a reason of *stopped notifications due to SIGINT/SIGSTOP signals (MI) 2015-05-15 09:29:09 +00:00
SBQueue.i
SBQueueItem.i
SBSection.i
SBSourceManager.i
SBStream.i
SBStringList.i
SBSymbol.i Add a GetDisplayName() API to SBFrame, SBFunction and SBSymbol 2015-07-06 18:28:46 +00:00
SBSymbolContext.i
SBSymbolContextList.i
SBTarget.i Add a version of SBTarget::EvaluateExpression that doesn't require 2015-07-07 22:12:17 +00:00
SBThread.i
SBThreadCollection.i
SBThreadPlan.i
SBType.i
SBTypeCategory.i
SBTypeEnumMember.i
SBTypeFilter.i
SBTypeFormat.i
SBTypeNameSpecifier.i
SBTypeSummary.i
SBTypeSynthetic.i
SBUnixSignals.i
SBValue.i
SBValueList.i
SBVariablesOptions.i
SBWatchpoint.i