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 --- 396 unchanged lines hidden (view full) --- 405 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path 406 407 filename = sys.argv[0] 408 filedata = file(filename, 'r').read() 409 filecode = compile(filedata, filename, 'exec') 410 scope = { '__file__' : filename, 411 '__name__' : '__m5_main__' } 412 |
413 # if pdb was requested, execfile the thing under pdb, otherwise, 414 # just do the execfile normally 415 if options.pdb: 416 import pdb 417 import traceback 418 419 pdb = pdb.Pdb() 420 try: --- 29 unchanged lines hidden --- |