Skip to content
Snippets Groups Projects
Commit 70984a34 authored by Patrick Daly's avatar Patrick Daly
Browse files

lrdp: Add additional error checking for --autodump

Verify that files exist before checking file size.

Change-Id: Icb55984bf33a677594726345f4c82c55c2948134
parent 0ed70037
Branches
No related tags found
No related merge requests found
# Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
# Copyright (c) 2012-2018, 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
......@@ -70,6 +70,8 @@ class AutoDumpInfo(object):
def parse(self):
for (filename, base_addr) in self._parse():
fullpath = os.path.join(self.autodumpdir, filename)
if not os.path.exists(fullpath):
continue
end = base_addr + os.path.getsize(fullpath) - 1
self.ebi_files.append((open(fullpath, 'rb'), base_addr, end, fullpath))
# sort by addr, DDR files first. The goal is for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment