mirror of https://github.com/ARMmbed/mbed-os.git
Moved detailed memap parameter to consturctor
parent
99ac966825
commit
2b36d2de5c
|
@ -25,7 +25,7 @@ class MemapParser(object):
|
||||||
"""An object that represents parsed results, parses the memory map files,
|
"""An object that represents parsed results, parses the memory map files,
|
||||||
and writes out different file types of memory results
|
and writes out different file types of memory results
|
||||||
"""
|
"""
|
||||||
|
|
||||||
print_sections = ('.text', '.data', '.bss')
|
print_sections = ('.text', '.data', '.bss')
|
||||||
|
|
||||||
misc_flash_sections = ('.interrupts', '.flash_config')
|
misc_flash_sections = ('.interrupts', '.flash_config')
|
||||||
|
@ -38,11 +38,11 @@ class MemapParser(object):
|
||||||
# sections to print info (generic for all toolchains)
|
# sections to print info (generic for all toolchains)
|
||||||
sections = ('.text', '.data', '.bss', '.heap', '.stack')
|
sections = ('.text', '.data', '.bss', '.heap', '.stack')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, detailed_misc=False):
|
||||||
""" General initialization
|
""" General initialization
|
||||||
"""
|
"""
|
||||||
#
|
#
|
||||||
self.detailed_misc = False
|
self.detailed_misc = detailed_misc
|
||||||
|
|
||||||
# list of all modules and their sections
|
# list of all modules and their sections
|
||||||
self.modules = dict()
|
self.modules = dict()
|
||||||
|
@ -640,14 +640,10 @@ def main():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Create memap object
|
# Create memap object
|
||||||
memap = MemapParser()
|
memap = MemapParser(detailed_misc=args.detailed)
|
||||||
|
|
||||||
# Show Misc unfolded
|
|
||||||
if args.detailed:
|
|
||||||
memap.detailed_misc = True
|
|
||||||
|
|
||||||
# Parse and decode a map file
|
# Parse and decode a map file
|
||||||
if args.file and args.toolchain:
|
if args.file and args.toolchain:
|
||||||
|
|
Loading…
Reference in New Issue