[all-commits] [llvm/llvm-project] dbd452: [lldb] Add a non-Darwin Host::OpenURL and a Host::...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Jun 26 10:15:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dbd4528e8d0f6c90d8896ae48e1f0505e83a0fc6
      https://github.com/llvm/llvm-project/commit/dbd4528e8d0f6c90d8896ae48e1f0505e83a0fc6
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M lldb/include/lldb/Host/Host.h
    M lldb/source/Host/common/Host.cpp
    M lldb/unittests/Host/HostTest.cpp

  Log Message:
  -----------
  [lldb] Add a non-Darwin Host::OpenURL and a Host::URLEncode helper (#206129)

Host::OpenURL was only defined for Darwin (in Host.mm). Add a portable
implementation in the common Host.cpp: on Unix it launches xdg-open; on
Windows it returns "unsupported" for now. xdg-open is run without a
shell (run_in_shell=false) so query-string metacharacters in the URL are
never interpreted by the shell.

Also add Host::URLEncode, an RFC 3986 percent-encoder for assembling
tracker URLs. These are the building blocks for an upcoming "diagnostics
report" command that opens a pre-filled bug URL, and the encoder is
shared with a downstream tap-to-radar reporter.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list