Platform-specific specialization for the GPR register file.

- Required for platform-independant handling of general purpose registers (i.e. for core dumps).

Thanks to Samuel Jacob for this patch.

llvm-svn: 180878
This commit is contained in:
Ashok Thirumurthi
2013-05-01 20:17:59 +00:00
parent bc668b0642
commit e4a862f794
9 changed files with 507 additions and 242 deletions

View File

@@ -28,6 +28,8 @@
#include "RegisterContext_i386.h"
#include "RegisterContext_x86_64.h"
#include "RegisterContextPOSIX.h"
#include "RegisterContextLinux_x86_64.h"
#include "RegisterContextFreeBSD_x86_64.h"
#include "UnwindLLDB.h"
@@ -97,7 +99,12 @@ POSIXThread::GetRegisterContext()
break;
case ArchSpec::eCore_x86_64_x86_64:
m_reg_context_sp.reset(new RegisterContext_x86_64(*this, 0));
#ifdef __linux__
m_reg_context_sp.reset(new RegisterContextLinux_x86_64(*this, 0));
#endif
#ifdef __FreeBSD__
m_reg_context_sp.reset(new RegisterContextFreeBSD_x86_64(*this, 0));
#endif
break;
}
}