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
This commit is contained in:
Jason Molenda 2014-08-03 21:42:52 +00:00
parent 5e1207e54c
commit 921c01b5e5
1 changed files with 2 additions and 2 deletions

View File

@ -1048,7 +1048,7 @@ ProcessGDBRemote::DidLaunchOrAttach (ArchSpec& process_arch)
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 @@ ProcessGDBRemote::DidLaunchOrAttach (ArchSpec& process_arch)
{
// 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);
}
}
}