main.py (12012:2991b2c2ffe9) | main.py (12033:2e805c6168ce) |
---|---|
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 | 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 # we want readline if we're doing anything interactive 414 if options.interactive or options.pdb: 415 exec "import readline" in scope 416 | |
417 # if pdb was requested, execfile the thing under pdb, otherwise, 418 # just do the execfile normally 419 if options.pdb: 420 import pdb 421 import traceback 422 423 pdb = pdb.Pdb() 424 try: --- 29 unchanged lines hidden --- | 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 --- |