sim: allow specifying remote gdb port for each workload
In a platform with multiple systems, we may want to specify the remote gdb port for each system. This change makes it possible to specify the port number at each Workload instance. Change-Id: I755b3960ee920ae5289819aa05d98902614a5615 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/65151 Maintainer: Earl Ou <shunhsingou@google.com> Reviewed-by: Yu-hsin Wang <yuhsingw@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -28,7 +28,7 @@ from collections.abc import Mapping
|
||||
|
||||
import _m5.debug
|
||||
from _m5.debug import SimpleFlag, CompoundFlag
|
||||
from _m5.debug import schedBreak, setRemoteGDBPort
|
||||
from _m5.debug import schedBreak
|
||||
from m5.util import printList
|
||||
|
||||
|
||||
|
||||
@@ -519,8 +519,6 @@ def main():
|
||||
if not options.allow_remote_connections:
|
||||
m5.listenersLoopbackOnly()
|
||||
|
||||
# set debugging options
|
||||
debug.setRemoteGDBPort(options.remote_gdb_port)
|
||||
for when in options.debug_break:
|
||||
debug.schedBreak(int(when))
|
||||
|
||||
|
||||
@@ -86,7 +86,6 @@ pybind_init_debug(py::module_ &m_native)
|
||||
.def("allFlags", &debug::allFlags, py::return_value_policy::reference)
|
||||
|
||||
.def("schedBreak", &schedBreak)
|
||||
.def("setRemoteGDBPort", &setRemoteGDBPort)
|
||||
;
|
||||
|
||||
py::class_<debug::Flag> c_flag(m_debug, "Flag");
|
||||
|
||||
Reference in New Issue
Block a user