]> Git Repo - linux.git/blobdiff - scripts/gdb/linux/utils.py
fs/binfmt_elf: use PT_LOAD p_align values for static PIE
[linux.git] / scripts / gdb / linux / utils.py
index ea94221dbd392733b873129b7c9060ef9da5b9a4..ff7c1799d588faee3cae27d5c823ba9a4e3f9f99 100644 (file)
@@ -123,6 +123,13 @@ def read_u64(buffer, offset):
         return read_u32(buffer, offset + 4) + (read_u32(buffer, offset) << 32)
 
 
         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
 
 
 target_arch = None
 
 
This page took 0.033745 seconds and 4 git commands to generate.