Files
clang-p2996/lldb/source/Plugins/Platform/QemuUser/PlatformQemuUserProperties.td
Pavel Labath 9b8f9d33db [lldb/qemu] More flexible emulator specification
This small patch adds two useful improvements:
- allows one to specify the emulator path as a bare filename, and have
  it be looked up in the PATH
- allows one to leave the path empty and have the filename be derived
  from the architecture.
2021-12-30 15:14:41 +01:00

25 lines
1.0 KiB
TableGen

include "../../../../include/lldb/Core/PropertiesBase.td"
let Definition = "platformqemuuser" in {
def Architecture: Property<"architecture", "String">,
Global,
DefaultStringValue<"">,
Desc<"Architecture to emulate.">;
def EmulatorPath: Property<"emulator-path", "FileSpec">,
Global,
DefaultStringValue<"">,
Desc<"Path to the emulator binary. If the path does not contain a directory separator, the filename is looked up in the PATH environment variable. If empty, the filename is derived from the architecture setting.">;
def EmulatorArgs: Property<"emulator-args", "Args">,
Global,
DefaultStringValue<"">,
Desc<"Extra arguments to pass to the emulator.">;
def EmulatorEnvVars: Property<"emulator-env-vars", "Dictionary">,
Global,
ElementType<"String">,
Desc<"Extra variables to add to the emulator environment.">;
def TargetEnvVars: Property<"target-env-vars", "Dictionary">,
Global,
ElementType<"String">,
Desc<"Extra variables to add to emulated target environment.">;
}