diff options
| author | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-01 20:17:59 +0000 |
|---|---|---|
| committer | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-01 20:17:59 +0000 |
| commit | e4a862f79428f7b6bb29de6b7133e111f1cd2a11 (patch) | |
| tree | 6b6196d0729cd8aec6242d7dfbf94932ed50e8eb /lldb/source/Plugins/Process/POSIX/POSIXThread.cpp | |
| parent | bc668b06428765e38006f3822bd0eae424f492b0 (diff) | |
| download | bcm5719-llvm-e4a862f79428f7b6bb29de6b7133e111f1cd2a11.tar.gz bcm5719-llvm-e4a862f79428f7b6bb29de6b7133e111f1cd2a11.zip | |
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
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/POSIXThread.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/POSIX/POSIXThread.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp b/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp index 94ee8cbdc2c..3b2ae03bd71 100644 --- a/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp +++ b/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp @@ -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; } } |

