diff options
author | Mark Brown <broonie@kernel.org> | 2020-10-28 21:37:38 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-28 21:37:38 +0000 |
commit | f59cddd8517ab880fb09bf1465b07b337e058b22 (patch) | |
tree | b8ac2b4bd99f6b4860dd403bb39b2b7149ed06e0 /scripts/gdb/linux/utils.py | |
parent | 43c3e148830aae5469c411a2bf951d4fe7fcea29 (diff) | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) |
Merge tag 'v5.10-rc1' into regulator-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 |