forked from OSchip/llvm-project
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:
parent
3d32ad3a7f
commit
6ea4c8ea26
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue