[all-commits] [llvm/llvm-project] be8846: Platform qemu-user: Build path to qemu automatical...

tedwoodward via All-commits all-commits at lists.llvm.org
Tue Aug 22 12:20:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be88462cd6aa819c22185ff0916988d4f03b6ab0
      https://github.com/llvm/llvm-project/commit/be88462cd6aa819c22185ff0916988d4f03b6ab0
  Author: Ted Woodward <tedwood at quicinc.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M lldb/source/Plugins/Platform/QemuUser/PlatformQemuUser.cpp

  Log Message:
  -----------
  Platform qemu-user: Build path to qemu automatically if not specified

Get the path to qemu in the following order:
1) From the property platform.plugin.qemu-user.emulator-path
2) If that property is not set, from PATH, building the name of the qemu
   binary from the triple in  property platform.plugin.qemu-user.architecture
3) If that property is not set, from PATH, building the name of the qemu
   binary from the triple in the target

This will allow a user to load a target and run without setting properties,
if qemu is on the PATH and named qemu-<ArchName>

Reviewed By: labath

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




More information about the All-commits mailing list