tools/TRAP: Fix debugsymbolviewer formatting
Convert spaces to tabs
Trim trailing spaces
Remove unused variable
@@ -20,7 +20,6 @@ from __future__ import print_function
from math import log
from array import *
import os
-import re
import sys
bin_path = '../../build/output/bin/' # Output bin path
@@ -203,7 +202,6 @@ def is_kernel_text_address(address):
def print_stack(log_file):
stack_addr = 0x00000000
stack_val = 0x00000000
- format_print = True
# Parse the contents based on tokens in log file.
with open(log_file) as searchfile:
for line in searchfile:
@@ -245,6 +243,7 @@ def print_stack(log_file):
stack_val = stack_val - int(g_stext_app[is_app_symbol - 1])
print_symbol(stack_addr, stack_val, is_app_symbol)
+
# Function to Parse the i/p log file (which contains wrong stackdump during assert)
def print_wrong_sp(log_file):
stack_addr = 0x00000000
@@ -313,4 +312,3 @@ if (__name__ == '__main__'):
print_wrong_sp(log_file)
else:
print_stack(log_file)
-
