llvm-project/lldb/scripts/interface
Jason Molenda 878ae01889 This patch stops lldb from loading a .lldbinit file from the current
working directory by default -- a typical security problem that we
need to be more conservative about.

It adds a new target setting, target.load-cwd-lldbinit which may
be true (always read $cwd/.lldbinit), false (never read $cwd/.lldbinit)
or warn (warn if there is a $cwd/.lldbinit and don't read it).  The
default is set to warn.  If this is met with unhappiness, we can look
at changing the default to true (to match current behavior) on a 
different platform.

This does not affect reading of ~/.lldbinit - that will still be read,
as before.  If you run lldb in your home directory, it will not warn
about the presence of a .lldbinit file there.

I had to add two SB API - SBHostOS::GetUserHomeDirectory and 
SBFileSpec::AppendPathComponent - for the lldb driver code to be
able to get the home directory path in an OS neutral manner.

The warning text is

There is a .lldbinit file in the current directory which is not being read.
To silence this warning without sourcing in the local .lldbinit,
add the following to the lldbinit file in your home directory:
    settings set target.load-cwd-lldbinit false
To allow lldb to source .lldbinit files in the current working directory,
set the value of this variable to true.  Only do so if you understand and
accept the security risk.

<rdar://problem/24199163> 

llvm-svn: 261280
2016-02-19 00:05:17 +00:00
..
SBAddress.i
SBAttachInfo.i SBTarget::Attach(SBAttachInfo &) was changed to not be asynchronous back in February and this affected Xcode's abililty to cancel an attach to process by name. 2015-10-05 22:58:37 +00:00
SBBlock.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBBreakpoint.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBBreakpointLocation.i
SBBroadcaster.i
SBCommandInterpreter.i
SBCommandReturnObject.i
SBCommunication.i
SBCompileUnit.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBData.i Python 3 - Use six in our embedded Python glue code. 2015-11-11 17:59:57 +00:00
SBDebugger.i Add a note on how to create an empty target and use it to attach to 2016-02-01 20:05:37 +00:00
SBDeclaration.i
SBError.i Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater. 2015-10-13 17:54:15 +00:00
SBEvent.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBExecutionContext.i
SBExpressionOptions.i Allow expresions to have unique expression prefixes: 2015-05-27 22:32:39 +00:00
SBFileSpec.i This patch stops lldb from loading a .lldbinit file from the current 2016-02-19 00:05:17 +00:00
SBFileSpecList.i
SBFrame.i Add a GetDisplayName() API to SBFrame, SBFunction and SBSymbol 2015-07-06 18:28:46 +00:00
SBFunction.i Fixed TypeMemberFunctionImpl to not use clang types directly but use the new CompilerDecl class to do the job in an abstract way. 2015-11-10 17:47:04 +00:00
SBHostOS.i This patch stops lldb from loading a .lldbinit file from the current 2016-02-19 00:05:17 +00:00
SBInstruction.i [LLDB][MIPS] A small fix in GetBreakableLoadAddress() for MIPS 2016-01-27 10:16:30 +00:00
SBInstructionList.i
SBLanguageRuntime.i
SBLaunchInfo.i
SBLineEntry.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBListener.i
SBModule.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBModuleSpec.i
SBPlatform.i Refactor Unix signals. 2015-07-14 01:09:28 +00:00
SBProcess.i Fix some issues with bytes and strings in Python 3. 2016-01-25 23:21:18 +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 documentation for SBTarget::CreateValueFromAddress. 2015-12-04 20:16:51 +00:00
SBThread.i Adding an SBThread::StepInto that takes an end-line, also moved the code that figures 2016-02-13 00:31:47 +00:00
SBThreadCollection.i
SBThreadPlan.i
SBType.i Fixed TypeMemberFunctionImpl to not use clang types directly but use the new CompilerDecl class to do the job in an abstract way. 2015-11-10 17:47:04 +00:00
SBTypeCategory.i Add calls to the SB API to access the multi-language formatter category feature 2015-10-27 01:10:35 +00:00
SBTypeEnumMember.i
SBTypeFilter.i
SBTypeFormat.i
SBTypeNameSpecifier.i
SBTypeSummary.i
SBTypeSynthetic.i
SBUnixSignals.i
SBValue.i Make it clear how you would get the pointee out of an SBValue with 2015-12-04 22:51:19 +00:00
SBValueList.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBVariablesOptions.i
SBWatchpoint.i