Change ProcessGDBRemote::DidLaunchOrAttach to
call Target::SetArchitecture instead of modifying a
reference to the target's architecture so that the
target logging can show that the arch has been changed.
llvm-svn: 214667
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 1b04f42..f1ba477 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1048,7 +1048,7 @@
if (process_arch.GetMachine() == llvm::Triple::arm &&
process_arch.GetTriple().getVendor() == llvm::Triple::Apple)
{
- target_arch = process_arch;
+ GetTarget().SetArchitecture (process_arch);
}
else
{
@@ -1073,7 +1073,7 @@
{
// The target doesn't have a valid architecture yet, set it from
// the architecture we got from the remote GDB server
- target_arch = process_arch;
+ GetTarget().SetArchitecture (process_arch);
}
}
}