llvm-project/lldb/tools/debugserver/source
Pavel Labath deb45f2043 debugserver: Propagate environment in launch-mode (pr35671)
Summary:
Make sure we propagate environment when starting debugserver with a pre-loaded
inferior. AFAIK, RNBRunLoopLaunchInferior is only called in pre-loaded inferior
scenario, so we can just pick up the debugserver environment instead of trying
to construct an envp from the (empty) context.

This makes debugserver pass an test added for an equivalent lldb-server fix.

Reviewers: jasonmolenda, clayborg

Subscribers: JDevlieghere, lldb-commits

Differential Revision: https://reviews.llvm.org/D41352

llvm-svn: 321355
2017-12-22 11:09:21 +00:00
..
MacOSX Change uses of strncpy in debugserver to strlcpy 2017-12-09 03:37:09 +00:00
ARM_DWARF_Registers.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ARM_ehframe_Registers.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CMakeLists.txt [CMake] Need to set WITH_LOCKDOWN on debugserver target 2017-09-06 20:15:43 +00:00
ChangeLog
DNB.cpp Change uses of strncpy in debugserver to strlcpy 2017-12-09 03:37:09 +00:00
DNB.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBArch.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBArch.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBBreakpoint.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBBreakpoint.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBDataRef.cpp Fix warnings in DNBDataRef.cpp, NFC 2017-12-01 23:24:12 +00:00
DNBDataRef.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBDefs.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBError.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBError.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
DNBLog.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBLog.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBRegisterInfo.cpp Change uses of strncpy in debugserver to strlcpy 2017-12-09 03:37:09 +00:00
DNBRegisterInfo.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBRuntimeAction.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBThreadResumeActions.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBThreadResumeActions.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DNBTimer.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
JSON.cpp Fix warnings in JSON.cpp, NFC 2017-12-01 23:29:04 +00:00
JSON.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
JSONGenerator.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PThreadCondition.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PThreadEvent.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PThreadEvent.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PThreadMutex.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PThreadMutex.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PseudoTerminal.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
PseudoTerminal.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
RNBContext.cpp debugserver: Propagate environment in launch-mode (pr35671) 2017-12-22 11:09:21 +00:00
RNBContext.h debugserver: Propagate environment in launch-mode (pr35671) 2017-12-22 11:09:21 +00:00
RNBDefs.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
RNBRemote.cpp Change uses of strncpy in debugserver to strlcpy 2017-12-09 03:37:09 +00:00
RNBRemote.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
RNBServices.cpp Fix misc -Wcast-qual warnings, NFC 2017-12-06 19:21:11 +00:00
RNBServices.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
RNBSocket.cpp Fix misc -Wcast-qual warnings, NFC 2017-12-06 19:21:11 +00:00
RNBSocket.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StdStringExtractor.cpp Move StdStringExtractor to tools/debugserver 2016-09-12 16:13:05 +00:00
StdStringExtractor.h Move StdStringExtractor to tools/debugserver 2016-09-12 16:13:05 +00:00
SysSignal.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SysSignal.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
TTYState.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
TTYState.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
com.apple.debugserver.applist.internal.plist Upstreaming the apple internal changes that accumulated during the 2015-10-23 02:49:51 +00:00
com.apple.debugserver.applist.plist Upstreaming the apple internal changes that accumulated during the 2015-10-23 02:49:51 +00:00
com.apple.debugserver.internal.plist Upstreaming the apple internal changes that accumulated during the 2015-10-23 02:49:51 +00:00
com.apple.debugserver.plist Upstreaming the apple internal changes that accumulated during the 2015-10-23 02:49:51 +00:00
com.apple.debugserver.posix.plist Upstreaming the apple internal changes that accumulated during the 2015-10-23 02:49:51 +00:00
debugserver-entitlements.plist Remove some tabs that snuck into debugserver-entitlements.plist, etc. 2015-10-23 02:54:21 +00:00
debugserver-macosx-entitlements.plist
debugserver.cpp debugserver: Propagate environment in launch-mode (pr35671) 2017-12-22 11:09:21 +00:00
libdebugserver.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
libdebugserver.h