Fix to only update the offset for concrete registers (ones that don't have 'slice' or 'composite' key/value pairs).

llvm-svn: 197191
This commit is contained in:
Greg Clayton 2013-12-13 00:35:21 +00:00
parent 5e8dce4dbf
commit 25eec2cc75
1 changed files with 1 additions and 1 deletions

View File

@ -328,6 +328,7 @@ def get_target_definition ():
# Only fill in the offset if there is no 'slice' in the register info
if 'slice' not in reg_info and 'composite' not in reg_info:
reg_info['offset'] = offset
offset += reg_info['bitsize']/8
# Set the GCC/DWARF register number for this register if it has one
reg_num = get_reg_num(name_to_gcc_dwarf_regnum, reg_name)
@ -345,7 +346,6 @@ def get_target_definition ():
if reg_num != LLDB_INVALID_REGNUM:
reg_info['gdb'] = reg_num
offset += reg_info['bitsize']/8
g_target_definition['sets'] = ['General Purpose Registers', 'Floating Point Registers']
g_target_definition['registers'] = x86_64_register_infos
g_target_definition['host-info'] = { 'triple' : 'x86_64-apple-macosx', 'endian': eByteOrderLittle }