main.py (11304:d06e5a6b4b7f) | main.py (11338:5981f61b8936) |
---|---|
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 --- 89 unchanged lines hidden (view full) --- 98 help="Create breakpoint(s) at TICK(s) " \ 99 "(kills process if no debugger attached)") 100 option("--debug-help", action='store_true', 101 help="Print help on debug flags") 102 option("--debug-flags", metavar="FLAG[,FLAG]", action='append', split=',', 103 help="Sets the flags for debug output (-FLAG disables a flag)") 104 option("--debug-start", metavar="TICK", type='int', 105 help="Start debug output at TICK") | 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 --- 89 unchanged lines hidden (view full) --- 98 help="Create breakpoint(s) at TICK(s) " \ 99 "(kills process if no debugger attached)") 100 option("--debug-help", action='store_true', 101 help="Print help on debug flags") 102 option("--debug-flags", metavar="FLAG[,FLAG]", action='append', split=',', 103 help="Sets the flags for debug output (-FLAG disables a flag)") 104 option("--debug-start", metavar="TICK", type='int', 105 help="Start debug output at TICK") |
106 option("--debug-end", metavar="TICK", type='int', 107 help="End debug output at TICK") |
|
106 option("--debug-file", metavar="FILE", default="cout", 107 help="Sets the output file for debug [Default: %default]") 108 option("--debug-ignore", metavar="EXPR", action='append', split=':', 109 help="Ignore EXPR sim objects") 110 option("--remote-gdb-port", type='int', default=7000, 111 help="Remote gdb base port (set to 0 to disable listening)") 112 113 # Help options --- 229 unchanged lines hidden (view full) --- 343 344 if options.debug_start: 345 check_tracing() 346 e = event.create(trace.enable, event.Event.Debug_Enable_Pri) 347 event.mainq.schedule(e, options.debug_start) 348 else: 349 trace.enable() 350 | 108 option("--debug-file", metavar="FILE", default="cout", 109 help="Sets the output file for debug [Default: %default]") 110 option("--debug-ignore", metavar="EXPR", action='append', split=':', 111 help="Ignore EXPR sim objects") 112 option("--remote-gdb-port", type='int', default=7000, 113 help="Remote gdb base port (set to 0 to disable listening)") 114 115 # Help options --- 229 unchanged lines hidden (view full) --- 345 346 if options.debug_start: 347 check_tracing() 348 e = event.create(trace.enable, event.Event.Debug_Enable_Pri) 349 event.mainq.schedule(e, options.debug_start) 350 else: 351 trace.enable() 352 |
353 if options.debug_end: 354 check_tracing() 355 e = event.create(trace.disable, event.Event.Debug_Enable_Pri) 356 event.mainq.schedule(e, options.debug_end) 357 |
|
351 trace.output(options.debug_file) 352 353 for ignore in options.debug_ignore: 354 check_tracing() 355 trace.ignore(ignore) 356 357 sys.argv = arguments 358 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path --- 48 unchanged lines hidden --- | 358 trace.output(options.debug_file) 359 360 for ignore in options.debug_ignore: 361 check_tracing() 362 trace.ignore(ignore) 363 364 sys.argv = arguments 365 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path --- 48 unchanged lines hidden --- |