llvm-project/lldb/source/Plugins/Process/gdb-remote
Med Ismail Bennani addb5148f5 [lldb/Target] Add custom interpreter option to `platform shell`
This patch adds the ability to use a custom interpreter with the
`platform shell` command. If the user set the `-s|--shell` option
with the path to a binary, lldb passes it down to the platform's
`RunShellProcess` method and set it as the shell to use in
`ProcessLaunchInfo to run commands.

Note that not all the Platforms support running shell commands with
custom interpreters (i.e. RemoteGDBServer is only expected to use the
default shell).

This patch also makes some refactoring and cleanups, like swapping
CString for StringRef when possible and updating `SBPlatformShellCommand`
with new methods and a new constructor.

rdar://67759256

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

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2020-09-02 16:36:10 +02:00
..
CMakeLists.txt [lldb] Allows customizing libxml2 for darwin 2020-05-20 12:27:08 -07:00
GDBRemoteClientBase.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
GDBRemoteClientBase.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
GDBRemoteCommunication.cpp [CMake] Simplify CMake handling for zlib 2020-08-11 20:22:11 -07:00
GDBRemoteCommunication.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
GDBRemoteCommunicationClient.cpp [lldb/Target] Add custom interpreter option to `platform shell` 2020-09-02 16:36:10 +02:00
GDBRemoteCommunicationClient.h [lldb/Target] Add custom interpreter option to `platform shell` 2020-09-02 16:36:10 +02:00
GDBRemoteCommunicationHistory.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
GDBRemoteCommunicationHistory.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
GDBRemoteCommunicationReplayServer.cpp [lldb/Reproducers] Move connection logic into replay server (NFC) 2020-05-19 10:55:35 -07:00
GDBRemoteCommunicationReplayServer.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
GDBRemoteCommunicationServer.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
GDBRemoteCommunicationServer.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
GDBRemoteCommunicationServerCommon.cpp [lldb/Utility] Replace ProcessInstanceInfoList with std::vector. (NFCI) 2020-03-12 14:10:25 -07:00
GDBRemoteCommunicationServerCommon.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
GDBRemoteCommunicationServerLLGS.cpp Extend max register size to accommodate AArch64 SVE vector regs 2020-04-29 07:51:30 +05:00
GDBRemoteCommunicationServerLLGS.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
GDBRemoteCommunicationServerPlatform.cpp [lldb] Remote disk file/directory completion for platform commands 2020-08-24 17:55:54 +02:00
GDBRemoteCommunicationServerPlatform.h [lldb] Remote disk file/directory completion for platform commands 2020-08-24 17:55:54 +02:00
GDBRemoteRegisterContext.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
GDBRemoteRegisterContext.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
ProcessGDBRemote.cpp [lldb] Don't use hardware index to determine whether a breakpoint site is hardware 2020-07-29 21:27:24 +03:00
ProcessGDBRemote.h [lldb] Remove unused argument (NFC) 2020-07-13 13:44:51 -07:00
ProcessGDBRemoteLog.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
ProcessGDBRemoteLog.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
ProcessGDBRemoteProperties.td [lldb/gdb-remote] Change default value of use-libraries-svr4 to true 2020-05-14 12:17:37 +02:00
ThreadGDBRemote.cpp [lldb] Return Unwinder& from Thread::GetUnwinder 2020-03-09 14:13:22 +01:00
ThreadGDBRemote.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00