llvm-project/lldb/source/API
Pavel Labath 9cdd68e7c1 Recommit "[lldb/API] Overwrite variables with SBLaunchInfo::SetEnvironment(append=true)"
The patch was reverted 27d52cd86a because of failures in
TestWeakSymbols.py. These have now been addressed in D83552.

The original commit message was:
This function was documented to overwrite entries with D76111, which was
adding a couple of similar functions. However, this function (unlike the
functions added in that patch) was/is not actually overwriting variables
-- any pre-existing variables would get ignored.

This behavior does not seem to be intentional. In fact, before the refactor in
D41359, this function could introduce duplicate entries, which could
have very surprising effects both inside lldb and on other applications
(some applications would take the first value, some the second one; in
lldb, attempting to unset a variable could make the second variable
become active, etc.).

Overwriting seems to be the most reasonable behavior here, so change the
code to match documentation.

Differential Revision: https://reviews.llvm.org/D83306
2020-07-23 14:17:57 +02:00
..
CMakeLists.txt [lldb/CMake] Set both the BUILD and INSTALL RPATH on macOS 2020-05-28 16:04:35 -07:00
SBAddress.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBAttachInfo.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBBlock.cpp [lldb][NFCI] Remove unused LanguageType parameters 2020-01-30 21:57:23 -08:00
SBBreakpoint.cpp [lldb/API] Add missing LLDB_RECORD_RESULT 2020-07-01 14:41:11 -07:00
SBBreakpointLocation.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBBreakpointName.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBBreakpointOptionCommon.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
SBBreakpointOptionCommon.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
SBBroadcaster.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
SBCommandInterpreter.cpp [lldb][NFC] Remove an unnecessary cast in SBCommandInterpreter 2020-07-05 10:54:18 +02:00
SBCommandInterpreterRunOptions.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBCommandReturnObject.cpp [lldb/Interpreter] Support color in CommandReturnObject 2020-06-09 10:45:45 -07:00
SBCommunication.cpp [lldb] Change Communication::SetConnection to take a unique_ptr 2020-04-02 14:42:25 +02:00
SBCompileUnit.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
SBData.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBDebugger.cpp [ldb/Reproducers] Add YamlRecorder and MultiProvider 2020-07-10 12:48:22 -07:00
SBDeclaration.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBEnvironment.cpp [lldb/Reproducers] Add instrumentation to SBEnvironment 2020-05-20 13:02:20 -07:00
SBError.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBEvent.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBExecutionContext.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBExpressionOptions.cpp [lldb/API] Add missing LLDB_REGISTER_METHOD macros 2020-04-06 16:09:40 -07:00
SBFile.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBFileSpec.cpp [lldb/Reproducers] Fix passive replay for (char*, size_t) functions. 2020-04-20 13:26:11 -07:00
SBFileSpecList.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBFrame.cpp [lldb/api] Add checks for StackFrame::GetRegisterContext calls (NFC) 2020-07-07 23:30:24 +02:00
SBFunction.cpp [lldb] s/ExecutionContext/Target in Disassembler 2020-03-05 14:46:39 +01:00
SBHostOS.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
SBInstruction.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBInstructionList.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBLanguageRuntime.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
SBLaunchInfo.cpp Recommit "[lldb/API] Overwrite variables with SBLaunchInfo::SetEnvironment(append=true)" 2020-07-23 14:17:57 +02:00
SBLineEntry.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBListener.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBMemoryRegionInfo.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBMemoryRegionInfoList.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBModule.cpp [lldb/Test] Assert that no targets or modules remain after a test completes. 2020-06-12 15:17:44 -07:00
SBModuleSpec.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBPlatform.cpp [lldb/API] Add missing reproducer instrumentation to GetHostPlatform. 2020-03-31 10:45:25 -07:00
SBProcess.cpp [lldb/Reproducers] Fix passive replay for (char*, size_t) functions. 2020-04-20 13:26:11 -07:00
SBProcessInfo.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBQueue.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBQueueItem.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
SBReproducer.cpp [lldb/Reproducers] Always record the current working directory 2020-07-20 11:54:11 -07:00
SBReproducerPrivate.h [lldb/Reproducers] Support new replay mode: passive replay 2020-04-20 09:41:40 -07:00
SBSection.cpp [lldb] Switch Section-dumping code to raw_ostream 2020-05-14 11:59:18 +02:00
SBSourceManager.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBStream.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBStringList.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBStructuredData.cpp [lldb/Reproducers] Fix passive replay for (char*, size_t) functions. 2020-04-20 13:26:11 -07:00
SBSymbol.cpp [lldb] s/ExecutionContext/Target in Disassembler 2020-03-05 14:46:39 +01:00
SBSymbolContext.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBSymbolContextList.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBTarget.cpp [lldb] Remove unused argument (NFC) 2020-07-13 13:44:51 -07:00
SBThread.cpp [lldb/Reproducers] Fix passive replay for (char*, size_t) functions. 2020-04-20 13:26:11 -07:00
SBThreadCollection.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBThreadPlan.cpp [lldb] Use weak_ptr to hold on to the underlying thread plan in SBThreadPlan 2020-07-20 16:55:17 -07:00
SBTrace.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
SBTraceOptions.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
SBType.cpp Thread ExecutionContextScope through GetByteSize where possible (NFC-ish) 2020-07-22 08:56:29 -07:00
SBTypeCategory.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBTypeEnumMember.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBTypeFilter.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBTypeFormat.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBTypeNameSpecifier.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBTypeSummary.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBTypeSynthetic.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBUnixSignals.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SBValue.cpp [lldb] Remove 'use_synthetic' parameters in ValueObject code 2020-05-08 21:17:32 +02:00
SBValueList.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBVariablesOptions.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBWatchpoint.cpp [lldb] Replace empty ctor en dtor bodies with =default (NFC) 2020-02-17 22:58:26 -08:00
SystemInitializerFull.cpp Re-land "[lldb/CMake] Auto-generate the Initialize and Terminate calls for plugin" 2020-02-18 19:16:07 -08:00
SystemInitializerFull.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
Utils.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
liblldb-private.exports
liblldb.exports
liblldb.xcode.exports