Author: gclayton
Date: Thu Dec 12 18:35:21 2013
New Revision: 197191
URL: http://llvm.org/viewvc/llvm-project?rev=197191&view=rev
Log:
Fix to only update the offset for concrete registers (ones that don't have
'slice' or 'composite' key/value pairs).
Modified:
lldb/trunk/examples/python/x86_64_target_definition.py
Modified: lldb/trunk/examples/python/x86_64_target_definition.py
URL:
http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/x86_64_target_definition.py?rev=197191&r1=197190&r2=197191&view=diff
==============================================================================
--- lldb/trunk/examples/python/x86_64_target_definition.py (original)
+++ lldb/trunk/examples/python/x86_64_target_definition.py Thu Dec 12 18:35:21
2013
@@ -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 }
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits