[Lldb-commits] [lldb] r220938 - Get the correct process architecture in ProcessKDP::DidAttach().
Greg Clayton
gclayton at apple.com
Thu Oct 30 17:06:52 PDT 2014
Author: gclayton
Date: Thu Oct 30 19:06:52 2014
New Revision: 220938
URL: http://llvm.org/viewvc/llvm-project?rev=220938&view=rev
Log:
Get the correct process architecture in ProcessKDP::DidAttach().
<rdar://problem/18806212>
Modified:
lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
Modified: lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp?rev=220938&r1=220937&r2=220938&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp (original)
+++ lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp Thu Oct 30 19:06:52 2014
@@ -439,7 +439,12 @@ ProcessKDP::DidAttach (ArchSpec &process
log->Printf ("ProcessKDP::DidAttach()");
if (GetID() != LLDB_INVALID_PROCESS_ID)
{
- // TODO: figure out the register context that we will use
+ uint32_t cpu = m_comm.GetCPUType();
+ if (cpu)
+ {
+ uint32_t sub = m_comm.GetCPUSubtype();
+ process_arch.SetArchitecture(eArchTypeMachO, cpu, sub);
+ }
}
}
More information about the lldb-commits
mailing list