mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
run: create --tmux-program gdb to open gem5 GDB
This commit is contained in:
16
README.adoc
16
README.adoc
@@ -1426,13 +1426,25 @@ Bibliography: https://unix.stackexchange.com/questions/152738/how-to-split-a-new
|
||||
|
||||
==== tmux gem5
|
||||
|
||||
If you are using gem5 instead of QEMU, `--tmux` has a different effect: it opens the gem5 terminal instead of the debugger:
|
||||
If you are using gem5 instead of QEMU, `--tmux` has a different effect by default: it opens the gem5 terminal instead of the debugger:
|
||||
|
||||
....
|
||||
./run --emulator gem5 --tmux
|
||||
....
|
||||
|
||||
If you also want to use the debugger with gem5, you will need to create new terminals as usual.
|
||||
To open a new pane with GDB instead of the terminal, use:
|
||||
|
||||
....
|
||||
./run --emulator gem5 --gdb-wait --tmux --tmux-program gdb
|
||||
....
|
||||
|
||||
`--tmux-program` implies `--tmux`, so we can just write:
|
||||
|
||||
....
|
||||
./run --emulator gem5 --gdb-wait --tmux-program gdb
|
||||
....
|
||||
|
||||
If you also want to see both GDB and the terminal with gem5, then you will need to open a separate shell manuall as usual with `./gem5-shell`.
|
||||
|
||||
From inside tmux, you can do that with `Ctrl-B C` or `Ctrl-B %`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user