How can I specify in the configuration file or command line that my simulation can wait for remote GDB connections before starting simulation #823
-
when I run this command in my command line : I saw that the output of GEM5 has a GDB listening port, so I guess GEM5 integrates a GDB server, but I haven't found a way to stop my program so that I can connect to GEM5 using GDB and debug my program Does anyone know what to do? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It depends on the type of the myconfig.py If the config file is like If the user run simulation with @overrides(AbstractSystemBoard)
def _setup_board(self) -> None:
self.workload = RiscvBootloaderKernelWorkload()
self.wait_for_remote_gdb = True # Add the code to let gem5 wait for remote GDB connection |
Beta Was this translation helpful? Give feedback.
It depends on the type of the myconfig.py
If the config file is like
example/se.py
andexample/fs.py
. You can add--wait-gdb
to let gem5 pause simulation until the GDB is connected.If the user run simulation with
RiscvBoard
. You may need to modify theRiscvBoard._setup_board
and rebuild again to let gem5 enable wait for gdb connection