Properly terminated POSIX register sets with LLDB_INVALID_REGNUM.
authorTodd Fiala <todd.fiala@gmail.com>
Sat, 14 Jun 2014 03:13:01 +0000 (03:13 +0000)
committerTodd Fiala <todd.fiala@gmail.com>
Sat, 14 Jun 2014 03:13:01 +0000 (03:13 +0000)
commitbe03c36ef3e339e2d4bb0349775e7a8fa1489a4d
tree95dbe7aeadc39b29874bea68ff23f4dec015e269
parentc30281afbb62e9a86fd7a1c9f346f294d33dcdd1
Properly terminated POSIX register sets with LLDB_INVALID_REGNUM.

RegisterSets are assumed to be terminated by this value.  Loops over
register set values would fail without LLDB_INVALID_REGNUM terminating
the list.  This change adjusts the static check to account for the
size of the register set regnum list being one larger than the expected
valid register set count.

llvm-svn: 210964
lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_x86.cpp