aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2018-06-27 09:29:24 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-06-27 10:36:58 +0200
commit1e6f2ea0d22f38fa1e96af0659786cfcbdfb5d31 (patch)
tree554bd4560c44124be3905d3dc12a2f9da8077646 /scripts
parentce0eb3c61bc37fe77113d5de5c633c99e3008454 (diff)
scripts/symbolize.py: remove spurious output '(out/arm/core/tee.elf)'
When a TA dump is processed, there is a list of ELF files just before the call stack. However, when analyzing a TEE core dump, there is no such list. Make sure this situation is properly handled to avoid displaying a spurious message. This means fixing incorrect indentation in a conditional. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/symbolize.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/symbolize.py b/scripts/symbolize.py
index abed7ba6..1eecf758 100755
--- a/scripts/symbolize.py
+++ b/scripts/symbolize.py
@@ -394,13 +394,14 @@ class Symbolizer(object):
for k in self._elfs:
e = self._elfs[k]
if (len(e) >= 3):
+ # TA executable or library
self._out.write(e[2].strip())
- elf = self.get_elf(e[0])
- if elf:
- rpath = os.path.realpath(elf)
- path = self.pretty_print_path(rpath)
- self._out.write(' (' + path + ')')
- self._out.write('\n')
+ elf = self.get_elf(e[0])
+ if elf:
+ rpath = os.path.realpath(elf)
+ path = self.pretty_print_path(rpath)
+ self._out.write(' (' + path + ')')
+ self._out.write('\n')
# Here is a good place to resolve the abort address because we
# have all the information we need
if self._saved_abort_line: