se.py (8467:82ff928182c5) se.py (8482:353abb676fa2)
1# Copyright (c) 2006-2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

66 buildEnv['TARGET_ISA']),
67 help="The binary to run in syscall emulation mode.")
68parser.add_option("-o", "--options", default="",
69 help='The options to pass to the binary, use " " around the entire string')
70parser.add_option("-i", "--input", default="", help="Read stdin from a file.")
71parser.add_option("--output", default="", help="Redirect stdout to a file.")
72parser.add_option("--errout", default="", help="Redirect stderr to a file.")
73
1# Copyright (c) 2006-2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

66 buildEnv['TARGET_ISA']),
67 help="The binary to run in syscall emulation mode.")
68parser.add_option("-o", "--options", default="",
69 help='The options to pass to the binary, use " " around the entire string')
70parser.add_option("-i", "--input", default="", help="Read stdin from a file.")
71parser.add_option("--output", default="", help="Redirect stdout to a file.")
72parser.add_option("--errout", default="", help="Redirect stderr to a file.")
73
74if 'PROTOCOL' in buildEnv:
75 parser.add_option("--ruby", action="store_true")
76
77execfile(os.path.join(config_root, "common", "Options.py"))
78
74execfile(os.path.join(config_root, "common", "Options.py"))
75
79if '--ruby' in sys.argv:
80 Ruby.define_options(parser)
76if buildEnv['PROTOCOL'] != 'None':
77 parser.add_option("--ruby", action="store_true")
78 if '--ruby' in sys.argv:
79 Ruby.define_options(parser)
81
82(options, args) = parser.parse_args()
83
84if args:
85 print "Error: script doesn't take any positional arguments"
86 sys.exit(1)
87
88multiprocesses = []

--- 111 unchanged lines hidden ---
80
81(options, args) = parser.parse_args()
82
83if args:
84 print "Error: script doesn't take any positional arguments"
85 sys.exit(1)
86
87multiprocesses = []

--- 111 unchanged lines hidden ---