diff options
| author | Alex Langford <alangford@apple.com> | 2023-05-02 14:48:10 -0700 |
|---|---|---|
| committer | Alex Langford <alangford@apple.com> | 2023-05-03 10:30:42 -0700 |
| commit | cd05ffdbb2c303cbf476a3a48b3f67094d428e37 (patch) | |
| tree | d576b498f7bd61c1ec374b51f1ba1beb48aa9528 /lldb/source/Host/linux/HostInfoLinux.cpp | |
| parent | 5c34cdaad7c2fdb995e5160f502022583e55b5b2 (diff) | |
[lldb] Remove distribution_id from ArchSpec
The qHostInfo packet in the gdb-remote communication protocol specifies
that distribution_id can be set, so lldb handles that. But we store that
in the ArchSpec representing the "Host" platform (whatever platform the
debug server is running on). This field is otherwise unused in ArchSpec,
so it would be a lot easier if we stored that information at the
gdb-remote communication layer.
Sidenote: The distribution_id field is currently unused but I did not
want to remove it in case some folks found it useful (e.g. in downstream
forks).
Differential Revision: https://reviews.llvm.org/D149697
Diffstat (limited to 'lldb/source/Host/linux/HostInfoLinux.cpp')
| -rw-r--r-- | lldb/source/Host/linux/HostInfoLinux.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/source/Host/linux/HostInfoLinux.cpp b/lldb/source/Host/linux/HostInfoLinux.cpp index 018be54ecf7a..c66f787db0cf 100644 --- a/lldb/source/Host/linux/HostInfoLinux.cpp +++ b/lldb/source/Host/linux/HostInfoLinux.cpp @@ -200,17 +200,13 @@ void HostInfoLinux::ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arch_64) { HostInfoPosix::ComputeHostArchitectureSupport(arch_32, arch_64); - const char *distribution_id = GetDistributionId().data(); - // On Linux, "unknown" in the vendor slot isn't what we want for the default // triple. It's probably an artifact of config.guess. if (arch_32.IsValid()) { - arch_32.SetDistributionId(distribution_id); if (arch_32.GetTriple().getVendor() == llvm::Triple::UnknownVendor) arch_32.GetTriple().setVendorName(llvm::StringRef()); } if (arch_64.IsValid()) { - arch_64.SetDistributionId(distribution_id); if (arch_64.GetTriple().getVendor() == llvm::Triple::UnknownVendor) arch_64.GetTriple().setVendorName(llvm::StringRef()); } |
