|
LLDB mainline
|
#include "lldb/Host/windows/ProcessLauncherWindows.h"#include "lldb/Host/HostProcess.h"#include "lldb/Host/windows/PseudoConsole.h"#include "lldb/Host/windows/windows.h"#include "llvm/ADT/SmallVector.h"#include "llvm/Support/ConvertUTF.h"#include "llvm/Support/Program.h"#include "llvm/Support/WindowsError.h"#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | lldb_private |
| A class that represents a running process on the host machine. | |
Functions | |
| static std::vector< wchar_t > | CreateEnvironmentBufferW (const Environment &env) |
| Create a UTF-16 environment block to use with CreateProcessW. | |
| llvm::ErrorOr< std::wstring > | lldb_private::GetFlattenedWindowsCommandStringW (const Args &args) |
| Flattens an Args object into a Windows command-line wide string. | |
| llvm::ErrorOr< std::wstring > | lldb_private::GetFlattenedWindowsCommandStringW (llvm::ArrayRef< const char * > args) |
|
static |
Create a UTF-16 environment block to use with CreateProcessW.
The buffer is a sequence of null-terminated UTF-16 strings, followed by an extra L'\0' (two bytes of 0). An empty environment must have one empty string, followed by an extra L'\0'.
The keys are sorted to comply with the CreateProcess API calling convention.
Ensure that the resulting buffer is used in conjunction with CreateProcessW and be sure that dwCreationFlags includes CREATE_UNICODE_ENVIRONMENT.
| env | The Environment object to convert. |
Definition at line 40 of file ProcessLauncherWindows.cpp.
References lldb_private::Environment::compose().
Referenced by lldb_private::ProcessLauncherWindows::LaunchProcess().