diff options
| author | Davide Italiano <davide@freebsd.org> | 2019-06-26 19:51:57 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2019-06-26 19:51:57 +0000 |
| commit | 4201ed2ea385224f0301e4a06d10cf11dd088d09 (patch) | |
| tree | 71bf953b4efc6072b6cde48b79aba4786de947ab /lldb/examples/python/x86_64_target_definition.py | |
| parent | 0e828958264734e60115ba2482437008c822d7db (diff) | |
| download | bcm5719-llvm-4201ed2ea385224f0301e4a06d10cf11dd088d09.tar.gz bcm5719-llvm-4201ed2ea385224f0301e4a06d10cf11dd088d09.zip | |
[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>
llvm-svn: 364465
Diffstat (limited to 'lldb/examples/python/x86_64_target_definition.py')
| -rw-r--r-- | lldb/examples/python/x86_64_target_definition.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/x86_64_target_definition.py b/lldb/examples/python/x86_64_target_definition.py index 741e4ef7b9f..3f7f60dec9b 100644 --- a/lldb/examples/python/x86_64_target_definition.py +++ b/lldb/examples/python/x86_64_target_definition.py @@ -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) |

