summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-10-29 00:36:35 +0300
committerMark Brown <broonie@kernel.org>2020-10-29 00:36:35 +0300
commitce038aeaee68f2e41c732b4b91c7185a1cac14b5 (patch)
treebaa463fe66186edf19b3ca65d002f66dd75f09a1 /scripts/gdb/linux/utils.py
parent6d6bc54ab4f2404d46078abc04bf4dee4db01def (diff)
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff)
downloadlinux-ce038aeaee68f2e41c732b4b91c7185a1cac14b5.tar.xz
Merge tag 'v5.10-rc1' into asoc-5.10
Linux 5.10-rc1
Diffstat (limited to 'scripts/gdb/linux/utils.py')
-rw-r--r--scripts/gdb/linux/utils.py7
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