Fixing TestRegisters on Linux with LLGS
authorVince Harron <vharron@google.com>
Fri, 23 Jan 2015 22:57:00 +0000 (22:57 +0000)
committerVince Harron <vharron@google.com>
Fri, 23 Jan 2015 22:57:00 +0000 (22:57 +0000)
commitd40ef9993eb5fefebda0500dcf3bf7d9e10a240e
tree91a53c67e0cd5532b594f5df67aa8fe9743dd8f0
parentf4ebbc68255366fa636ff6e5e2bf51cc0d054041
Fixing TestRegisters on Linux with LLGS

This patch fixes TestRegisters on Linux with LLGS

Introduce GetUserRegisterCount on RegisterInfoInterface to distinguish
lldb internal registers (e.g.: DR0-DR7) during register counting.

Update GDBRemoteCommunicationServer to skip lldb internal registers on
read/write register and on discover register.

Submitted for Tamas Berghammer

llvm-svn: 226959
lldb/include/lldb/Target/NativeRegisterContext.h
lldb/include/lldb/Target/NativeRegisterContextRegisterInfo.h
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/source/Plugins/Process/Utility/lldb-x86-register-enums.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
lldb/source/Target/NativeRegisterContextRegisterInfo.cpp