From c2baaab0ed43ad09fc8b7fcda25207b6ccd6c0e3 Mon Sep 17 00:00:00 2001 From: Jose Marinho Date: Wed, 28 Jun 2017 11:09:13 +0100 Subject: cpu, sim: Add param to force CPUs to wait for GDB By setting the BaseCPU parameter wait_for_dbg_connection, the GDB server blocks during initialisation waiting for the remote debugger to connect before starting the simulated CPU. Change-Id: I4d62c68ce9adf69344bccbb44f66e30b33715a1c [ Update info message to include remote GDB port, rename param. ] Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/3963 Reviewed-by: Gabe Black Reviewed-by: Anthony Gutierrez --- src/base/remote_gdb.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/base/remote_gdb.hh') diff --git a/src/base/remote_gdb.hh b/src/base/remote_gdb.hh index b860f5d33..b7de0ae54 100644 --- a/src/base/remote_gdb.hh +++ b/src/base/remote_gdb.hh @@ -364,6 +364,8 @@ class GDBListener void accept(); void listen(); std::string name(); + + int getPort() const; }; #endif /* __REMOTE_GDB_H__ */ -- cgit v1.2.3