[Lldb-commits] [lldb] 4ef07e5 - [lldb] Don't overwrite the host arch with the process arch

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 11 09:23:07 PST 2022


Author: Jonas Devlieghere
Date: 2022-03-11T09:23:01-08:00
New Revision: 4ef07e5ffe59efa259bd84a7750718a5e62fa1ce

URL: https://github.com/llvm/llvm-project/commit/4ef07e5ffe59efa259bd84a7750718a5e62fa1ce
DIFF: https://github.com/llvm/llvm-project/commit/4ef07e5ffe59efa259bd84a7750718a5e62fa1ce.diff

LOG: [lldb] Don't overwrite the host arch with the process arch

Don't overwrite the host architecture (obtained from qHostInfo) with the
process info (obtained from qProcessInfo).

Differential revision: https://reviews.llvm.org/D121442

Added: 
    

Modified: 
    lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index ab60c97036898..d258d18497b95 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -2246,9 +2246,6 @@ bool GDBRemoteCommunicationClient::GetCurrentProcessInfo(bool allow_lazy) {
         m_process_arch.GetTriple().setVendorName(llvm::StringRef(vendor_name));
         m_process_arch.GetTriple().setOSName(llvm::StringRef(os_name));
         m_process_arch.GetTriple().setEnvironmentName(llvm::StringRef(environment));
-        m_host_arch.GetTriple().setVendorName(llvm::StringRef(vendor_name));
-        m_host_arch.GetTriple().setOSName(llvm::StringRef(os_name));
-        m_host_arch.GetTriple().setEnvironmentName(llvm::StringRef(environment));
       }
       return true;
     }


        


More information about the lldb-commits mailing list