summaryrefslogtreecommitdiff
path: root/src/sim/debug.cc
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/sim/debug.cc
parent9389ede894895999bf6cb20da64aa5b4c3a400b0 (diff)
downloadgem5-8c4f18f6f5e5dd9ccc4ef54590a11d70ba001264.tar.xz
RemoteGDB: add an m5 command line option for setting or disabling remote gdb.
Diffstat (limited to 'src/sim/debug.cc')
-rw-r--r--src/sim/debug.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sim/debug.cc b/src/sim/debug.cc
index b4f4cd9dc..36ac4efac 100644
--- a/src/sim/debug.cc
+++ b/src/sim/debug.cc
@@ -108,3 +108,20 @@ eventqDump()
mainEventQueue.dump();
}
+
+int remote_gdb_base_port = 7000;
+
+int
+getRemoteGDBPort()
+{
+ return remote_gdb_base_port;
+}
+
+// Set remote GDB base port. 0 means disable remote GDB.
+// Callable from python.
+void
+setRemoteGDBPort(int port)
+{
+ remote_gdb_base_port = port;
+}
+