summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
authorMichael Adler <Michael.Adler@intel.com>2008-07-23 14:41:33 -0700
committerMichael Adler <Michael.Adler@intel.com>2008-07-23 14:41:33 -0700
commit8c4f18f6f5e5dd9ccc4ef54590a11d70ba001264 (patch)
treea7d309a3269112993b84ca4d33dc8e7842906bfd /src/python/m5
parent9389ede894895999bf6cb20da64aa5b4c3a400b0 (diff)
downloadgem5-8c4f18f6f5e5dd9ccc4ef54590a11d70ba001264.tar.xz
RemoteGDB: add an m5 command line option for setting or disabling remote gdb.
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/m5/main.py b/src/python/m5/main.py
index dbabd9600..2bbd72152 100644
--- a/src/python/m5/main.py
+++ b/src/python/m5/main.py
@@ -102,6 +102,8 @@ add_option("--stats-file", metavar="FILE", default="m5stats.txt",
set_group("Debugging Options")
add_option("--debug-break", metavar="TIME[,TIME]", action='append', split=',',
help="Cycle to create a breakpoint")
+add_option("--remote-gdb-port", type='int', default=7000,
+ help="Remote gdb base port")
# Tracing options
set_group("Trace Options")
@@ -256,6 +258,7 @@ def main():
internal.stats.initText(options.stats_file)
# set debugging options
+ internal.debug.setRemoteGDBPort(options.remote_gdb_port)
for when in options.debug_break:
internal.debug.schedBreakCycle(int(when))