Remove an x86-ism from RegisterInfoInterface
authorPavel Labath <labath@google.com>
Wed, 30 Nov 2016 10:17:58 +0000 (10:17 +0000)
committerPavel Labath <labath@google.com>
Wed, 30 Nov 2016 10:17:58 +0000 (10:17 +0000)
commit27469faaa7115d98519c5313097a43b99edefd5a
tree580eb4253d9224f8822b51194196c79f27c35e2c
parente6ba5efa80465f27463af3146ae59144a06742d1
Remove an x86-ism from RegisterInfoInterface

Summary:
While adding FPR support to x86 elf core files (D26300), we ended up adding a
very x86-specific function to the general RegisterInfoInterface class, which I
didn't catch in review. This removes that function. The only reason we needed
it was to find the offset of the FXSAVE area. This is the same as the offset of
the first register within that area, so we might as well use that.

Reviewers: clayborg, dvlahovski

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D27222

llvm-svn: 288236
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/RegisterContextPOSIX_x86.cpp
lldb/source/Plugins/Process/Utility/RegisterInfoInterface.h