diff options
author | Mark Brown <broonie@kernel.org> | 2020-10-28 21:36:51 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-28 21:36:51 +0000 |
commit | 3bfd5f422f07a10f485c3f046431783c7c4004f2 (patch) | |
tree | 7e990a251c825482216a0355177ef80874b3c0cb /scripts/gdb/linux/utils.py | |
parent | 43b6bf406cd0319e522638f97c9086b7beebaeaa (diff) | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) |
Merge tag 'v5.10-rc1' into spi-5.10
Linux 5.10-rc1
Diffstat (limited to 'scripts/gdb/linux/utils.py')
-rw-r--r-- | scripts/gdb/linux/utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/gdb/linux/utils.py b/scripts/gdb/linux/utils.py index ea94221dbd39..ff7c1799d588 100644 --- a/scripts/gdb/linux/utils.py +++ b/scripts/gdb/linux/utils.py @@ -123,6 +123,13 @@ def read_u64(buffer, offset): return read_u32(buffer, offset + 4) + (read_u32(buffer, offset) << 32) +def read_ulong(buffer, offset): + if get_long_type().sizeof == 8: + return read_u64(buffer, offset) + else: + return read_u32(buffer, offset) + + target_arch = None |