Set orig_eax to -1 for Linux x86 platforms
authorRavitheja Addepally <ravitheja.addepally@intel.com>
Thu, 13 Aug 2015 09:05:11 +0000 (09:05 +0000)
committerRavitheja Addepally <ravitheja.addepally@intel.com>
Thu, 13 Aug 2015 09:05:11 +0000 (09:05 +0000)
commit4778e410d0b33dc6f5837683ccd0e439a9b69d9e
tree919751d5ea3ac51757137b987c8ce97a79447991
parent0164b8ff70e814cd60621b0fcfbc5b86637efbb3
Set orig_eax to -1 for Linux x86 platforms

Summary:
For Linux x86 based environments the orig_eax/orig_rax
register should be set to -1 to prevent the instruction pointer
to be decremented, which was the cause for the SIGILL exception.

Fix for Bug 23659

Reviewers: zturner, ashok.thirumurthi, mikesart, jingham, clayborg

Subscribers: clayborg, labath

Differential Revision: http://reviews.llvm.org/D11411

llvm-svn: 244875
lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
lldb/source/Plugins/Process/Utility/RegisterContextLinux_i386.cpp
lldb/source/Plugins/Process/Utility/RegisterContextLinux_i386.h
lldb/source/Plugins/Process/Utility/RegisterContextLinux_x86_64.cpp
lldb/source/Plugins/Process/Utility/RegisterContextLinux_x86_64.h
lldb/source/Plugins/Process/Utility/RegisterInfoInterface.h
lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py