main.py (11923:d2f0605ac2af) main.py (12012:2991b2c2ffe9)
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

--- 71 unchanged lines hidden (view full) ---

80 option("--stdout-file", metavar="FILE", default="simout",
81 help="Filename for -r redirection [Default: %default]")
82 option("--stderr-file", metavar="FILE", default="simerr",
83 help="Filename for -e redirection [Default: %default]")
84 option("--listener-mode", metavar="{on,off,auto}",
85 choices=listener_modes, default="auto",
86 help="Port (e.g., gdb) listener mode (auto: Enable if running " \
87 "interactively) [Default: %default]")
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

--- 71 unchanged lines hidden (view full) ---

80 option("--stdout-file", metavar="FILE", default="simout",
81 help="Filename for -r redirection [Default: %default]")
82 option("--stderr-file", metavar="FILE", default="simerr",
83 help="Filename for -e redirection [Default: %default]")
84 option("--listener-mode", metavar="{on,off,auto}",
85 choices=listener_modes, default="auto",
86 help="Port (e.g., gdb) listener mode (auto: Enable if running " \
87 "interactively) [Default: %default]")
88 option("--listener-loopback-only", action="store_true", default=False,
89 help="Port listeners will only accept connections over the " \
90 "loopback device")
88 option('-i', "--interactive", action="store_true", default=False,
89 help="Invoke the interactive interpreter after running the script")
90 option("--pdb", action="store_true", default=False,
91 help="Invoke the python debugger before running the script")
92 option('-p', "--path", metavar="PATH[:PATH]", action='append', split=':',
93 help="Prepend PATH to the system path when invoking the script")
94 option('-q', "--quiet", action="count", default=0,
95 help="Reduce verbosity")

--- 251 unchanged lines hidden (view full) ---

347 if not isInteractive():
348 inform("Standard input is not a terminal, disabling listeners.")
349 m5.disableAllListeners()
350 elif options.listener_mode == "on":
351 pass
352 else:
353 panic("Unhandled listener mode: %s" % options.listener_mode)
354
91 option('-i', "--interactive", action="store_true", default=False,
92 help="Invoke the interactive interpreter after running the script")
93 option("--pdb", action="store_true", default=False,
94 help="Invoke the python debugger before running the script")
95 option('-p', "--path", metavar="PATH[:PATH]", action='append', split=':',
96 help="Prepend PATH to the system path when invoking the script")
97 option('-q', "--quiet", action="count", default=0,
98 help="Reduce verbosity")

--- 251 unchanged lines hidden (view full) ---

350 if not isInteractive():
351 inform("Standard input is not a terminal, disabling listeners.")
352 m5.disableAllListeners()
353 elif options.listener_mode == "on":
354 pass
355 else:
356 panic("Unhandled listener mode: %s" % options.listener_mode)
357
358 if options.listener_loopback_only:
359 m5.listenersLoopbackOnly()
360
355 # set debugging options
356 debug.setRemoteGDBPort(options.remote_gdb_port)
357 for when in options.debug_break:
358 debug.schedBreak(int(when))
359
360 if options.debug_flags:
361 check_tracing()
362

--- 85 unchanged lines hidden ---
361 # set debugging options
362 debug.setRemoteGDBPort(options.remote_gdb_port)
363 for when in options.debug_break:
364 debug.schedBreak(int(when))
365
366 if options.debug_flags:
367 check_tracing()
368

--- 85 unchanged lines hidden ---