main.py (13663:9b64aeabf9a5) | main.py (13670:8a98db5a481f) |
---|---|
1# Copyright (c) 2016 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 393 unchanged lines hidden (view full) --- 402 for ignore in options.debug_ignore: 403 check_tracing() 404 trace.ignore(ignore) 405 406 sys.argv = arguments 407 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path 408 409 filename = sys.argv[0] | 1# Copyright (c) 2016 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 393 unchanged lines hidden (view full) --- 402 for ignore in options.debug_ignore: 403 check_tracing() 404 trace.ignore(ignore) 405 406 sys.argv = arguments 407 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path 408 409 filename = sys.argv[0] |
410 filedata = file(filename, 'r').read() | 410 filedata = open(filename, 'r').read() |
411 filecode = compile(filedata, filename, 'exec') 412 scope = { '__file__' : filename, 413 '__name__' : '__m5_main__' } 414 415 # if pdb was requested, execfile the thing under pdb, otherwise, 416 # just do the execfile normally 417 if options.pdb: 418 import pdb --- 33 unchanged lines hidden --- | 411 filecode = compile(filedata, filename, 'exec') 412 scope = { '__file__' : filename, 413 '__name__' : '__m5_main__' } 414 415 # if pdb was requested, execfile the thing under pdb, otherwise, 416 # just do the execfile normally 417 if options.pdb: 418 import pdb --- 33 unchanged lines hidden --- |