Author: davide Date: Wed Jun 26 12:51:57 2019 New Revision: 364465 URL: http://llvm.org/viewvc/llvm-project?rev=364465&view=rev Log: [x86-64] Use `//` for integer division in the target definition.
This forces integer division and works with python 2 and python 3. <rdar://problem/52073911> 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=364465&r1=364464&r2=364465&view=diff ============================================================================== --- lldb/trunk/examples/python/x86_64_target_definition.py (original) +++ lldb/trunk/examples/python/x86_64_target_definition.py Wed Jun 26 12:51:57 2019 @@ -744,7 +744,7 @@ def get_target_definition(): # info if 'slice' not in reg_info and 'composite' not in reg_info: reg_info['offset'] = offset - offset += reg_info['bitsize'] / 8 + 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) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits