[Lldb-commits] [lldb] r180581 - Build fix for systems that do not support NT_X86_XSTATE ptrace support.
Matt Kopec
Matt.Kopec at intel.com
Thu Apr 25 16:00:45 PDT 2013
Author: mkopec
Date: Thu Apr 25 18:00:45 2013
New Revision: 180581
URL: http://llvm.org/viewvc/llvm-project?rev=180581&view=rev
Log:
Build fix for systems that do not support NT_X86_XSTATE ptrace support.
Patch by Ashok Thirumurthi.
Modified:
lldb/trunk/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp
Modified: lldb/trunk/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp?rev=180581&r1=180580&r2=180581&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/RegisterContext_x86_64.cpp Thu Apr 25 18:00:45 2013
@@ -28,6 +28,11 @@
using namespace lldb_private;
using namespace lldb;
+// Support ptrace extensions even when compiled without required kernel support
+#ifndef NT_X86_XSTATE
+ #define NT_X86_XSTATE 0x202
+#endif
+
// Internal codes for all x86_64 registers.
enum
{
More information about the lldb-commits
mailing list