From f16b737f86573938b3f915c336d0a88a66390684 Mon Sep 17 00:00:00 2001 From: wadesong <wadesong@codeaurora.org> Date: Sun, 12 Nov 2017 00:13:32 +0800 Subject: [PATCH] lrdp-v2: Fix ARM 32-bit thread_info addr reading error In thread_saved_field_common_32, read_word should not be used to retrieve the thread_info structure's address because get_thread_info_addr is already doing the same. Change-Id: I422c67b98d318c0084ab32fb0ad9f180da186829 --- linux-ramdump-parser-v2/ramdump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-ramdump-parser-v2/ramdump.py b/linux-ramdump-parser-v2/ramdump.py index 2a2132b..fba4cbc 100644 --- a/linux-ramdump-parser-v2/ramdump.py +++ b/linux-ramdump-parser-v2/ramdump.py @@ -1634,7 +1634,7 @@ class RamDump(): return cpu def thread_saved_field_common_32(self, task, reg_offset): - thread_info = self.read_word(self.get_thread_info_addr(task)) + thread_info = self.get_thread_info_addr(task) cpu_context_offset = self.field_offset('struct thread_info', 'cpu_context') val = self.read_word(thread_info + cpu_context_offset + reg_offset) return val -- GitLab