diff --git a/linux-ramdump-parser-v2/parsers/rtb.py b/linux-ramdump-parser-v2/parsers/rtb.py index f1e0814e06ecd72ec861e99060b9e08b70fb08d2..9a0c99d27ab4a8b7afc03d93bff179c1beef5c0a 100755 --- a/linux-ramdump-parser-v2/parsers/rtb.py +++ b/linux-ramdump-parser-v2/parsers/rtb.py @@ -1,4 +1,4 @@ -# Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. +# Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 and @@ -68,7 +68,11 @@ class RTB(RamParser): def print_readlwritel(self, rtbout, rtb_ptr, logtype): data = self.ramdump.read_structure_field(rtb_ptr, 'struct msm_rtb_layout', 'data') - physical = self.ramdump.virt_to_phys(data) + try: + physical = self.ramdump.virt_to_phys(data) + except: + physical = None + if physical is None: physical = "no translation found" else: