diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-08-03 21:42:52 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-08-03 21:42:52 +0000 |
commit | 921c01b5e50b19795b80359a1cbec7b2e760ae2e (patch) | |
tree | 58451599a56b1dd5fbb288f406b7ae1ff14811f8 /lldb/source/Plugins/Process/gdb-remote | |
parent | 5e1207e54ca646fe0f6d58e655451380041a4886 (diff) | |
download | bcm5719-llvm-921c01b5e50b19795b80359a1cbec7b2e760ae2e.tar.gz bcm5719-llvm-921c01b5e50b19795b80359a1cbec7b2e760ae2e.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 1b04f429156..f1ba4775473 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -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); } } } |