From 9ba959e4578d2ee3856bc590c98a01386bc7db61 Mon Sep 17 00:00:00 2001 From: rozlette Date: Sat, 17 Nov 2018 01:24:06 -0600 Subject: [PATCH] print type for const static variables in print_mdebug --- print_mdebug.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/print_mdebug.py b/print_mdebug.py index 51572628a9..73d7b9c3a2 100644 --- a/print_mdebug.py +++ b/print_mdebug.py @@ -381,11 +381,10 @@ def print_symbols(file_data, fd, symbolic_header): print('') elif leaf_sym.st == 2: # stStatic static_name = read_string(file_data, symbolic_header.cbSsOffset - OFFSET + fd.issBase + leaf_sym.iss) - if leaf_sym.sc == 2 or leaf_sym.sc == 3: # scData, scBss + if leaf_sym.sc == 2 or leaf_sym.sc == 3 or leaf_sym.sc == 15: # scData, scBss, scRData print('static %s;\n' % get_type_string(file_data, fd, symbolic_header, leaf_sym.index, static_name, True)) else: - # TODO what do 'Load time only' symbols do? - print('// static %s; - Load time only\n' % static_name) + print('ERROR unkown sc for stStatic in print_symbols: %d' % leaf_sym.sc) sym_num += 1 else: print('ERROR unkown st in leaf_sym in print_symbols: %d' % leaf_sym.st)