memstats_gnueabil.py: minor fix
authorVyacheslav Tyrtov <v.tyrtov@samsung.com>
Tue, 6 Jun 2017 08:50:12 +0000 (11:50 +0300)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:42 +0000 (21:15 -0700)
Drop subSymbol value at level1
Otherwise there is possibility of a bug during parsing of "fill" line.

Change-Id: I6800ced4cdf2143bb7a0dacc88f887b817d5e38a
Signed-off-by: Vyacheslav Tyrtov <v.tyrtov@samsung.com>
os/tools/memstats_gnueabil.py

index 9855a95..24bbc93 100755 (executable)
@@ -261,6 +261,7 @@ for line in infile:
                 lsplit = line.split()
                 if (line[0] == '.'):
                         currentSymbol = lsplit[0]
+                        subSymbol = 0;
                         if currentSymbol == ".comment":
                                 action = 0
                         level1[currentSymbol] = {}