main.py (5473:47c5168d092c) | main.py (5512:755fcaf7a4cf) |
---|---|
1# Copyright (c) 2005 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 --- 88 unchanged lines hidden (view full) --- 97set_group("Statistics Options") 98add_option("--stats-file", metavar="FILE", default="m5stats.txt", 99 help="Sets the output file for statistics [Default: %default]") 100 101# Debugging options 102set_group("Debugging Options") 103add_option("--debug-break", metavar="TIME[,TIME]", action='append', split=',', 104 help="Cycle to create a breakpoint") | 1# Copyright (c) 2005 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 --- 88 unchanged lines hidden (view full) --- 97set_group("Statistics Options") 98add_option("--stats-file", metavar="FILE", default="m5stats.txt", 99 help="Sets the output file for statistics [Default: %default]") 100 101# Debugging options 102set_group("Debugging Options") 103add_option("--debug-break", metavar="TIME[,TIME]", action='append', split=',', 104 help="Cycle to create a breakpoint") |
105add_option("--remote-gdb-port", type='int', default=7000, 106 help="Remote gdb base port") |
|
105 106# Tracing options 107set_group("Trace Options") 108add_option("--trace-help", action='store_true', 109 help="Print help on trace flags") 110add_option("--trace-flags", metavar="FLAG[,FLAG]", action='append', split=',', 111 help="Sets the flags for tracing (-FLAG disables a flag)") 112add_option("--trace-start", metavar="TIME", type='int', --- 138 unchanged lines hidden (view full) --- 251 sys.path[0:0] = options.path 252 253 import objects 254 255 # set stats options 256 internal.stats.initText(options.stats_file) 257 258 # set debugging options | 107 108# Tracing options 109set_group("Trace Options") 110add_option("--trace-help", action='store_true', 111 help="Print help on trace flags") 112add_option("--trace-flags", metavar="FLAG[,FLAG]", action='append', split=',', 113 help="Sets the flags for tracing (-FLAG disables a flag)") 114add_option("--trace-start", metavar="TIME", type='int', --- 138 unchanged lines hidden (view full) --- 253 sys.path[0:0] = options.path 254 255 import objects 256 257 # set stats options 258 internal.stats.initText(options.stats_file) 259 260 # set debugging options |
261 internal.debug.setRemoteGDBPort(options.remote_gdb_port) |
|
259 for when in options.debug_break: 260 internal.debug.schedBreakCycle(int(when)) 261 262 on_flags = [] 263 off_flags = [] 264 for flag in options.trace_flags: 265 off = False 266 if flag.startswith('-'): --- 64 unchanged lines hidden --- | 262 for when in options.debug_break: 263 internal.debug.schedBreakCycle(int(when)) 264 265 on_flags = [] 266 off_flags = [] 267 for flag in options.trace_flags: 268 off = False 269 if flag.startswith('-'): --- 64 unchanged lines hidden --- |