Skip to content

How can I specify in the configuration file or command line that my simulation can wait for remote GDB connections before starting simulation #823

Closed Answered by rogerchang23424
flyeagle0 asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on the type of the myconfig.py

If the config file is like example/se.py and example/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 the RiscvBoard._setup_board and rebuild again to let gem5 enable wait for gdb connection

    @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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@flyeagle0
Comment options

Answer selected by flyeagle0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants