rdar://problem/11487457

Previous fix to add convenience registers for x86_64 did not take the 'process attach' scenario into account.
This patch fixes that.

llvm-svn: 158222
This commit is contained in:
Johnny Chen 2012-06-08 19:06:28 +00:00
parent 3d32ad3a7f
commit 6ea4c8ea26
1 changed files with 2 additions and 1 deletions

View File

@ -401,7 +401,8 @@ ProcessGDBRemote::BuildDynamicRegisterInfo (bool force)
}
// Add some convenience registers (eax, ebx, ecx, edx, esi, edi, ebp, esp) to x86_64.
if (target_arch.IsValid() && target_arch.GetMachine() == llvm::Triple::x86_64)
if ((target_arch.IsValid() && target_arch.GetMachine() == llvm::Triple::x86_64)
|| (remote_arch.IsValid() && remote_arch.GetMachine() == llvm::Triple::x86_64))
m_register_info.Addx86_64ConvenienceRegisters();
// At this point, we can finalize our register info.