diff --git a/README.adoc b/README.adoc index b4db5b2..d2632bb 100644 --- a/README.adoc +++ b/README.adoc @@ -824,14 +824,6 @@ If you also want to use the debugger with gem5, you will need to create your own ./tmu ./rungdb;./run -dg .... -TODO: there is a problem with our method however: if you do something like: - -.... -./build && ./run -du -.... - -and the build takes a while, and you move to another tmux window, then the split happens on the current window, not where you ran the command: https://unix.stackexchange.com/questions/439031/how-to-split-the-window-that-ran-the-tmux-split-window-command-instead-of-the - === GDB step debug kernel module http://stackoverflow.com/questions/28607538/how-to-debug-linux-kernel-modules-with-qemu/44095831#44095831 diff --git a/tmu b/tmu index 7a92a97..8a6bc03 100755 --- a/tmu +++ b/tmu @@ -2,4 +2,5 @@ if [ "$(tmux list-panes | wc -l | cut -d' ' -f1)" -ne 1 ]; then tmux kill-pane -t 1 fi -tmux split-window -h "bash --rcfile <(echo '. ~/.bashrc;$*')" +# https://unix.stackexchange.com/questions/439031/how-to-split-the-window-that-ran-the-tmux-split-window-command-instead-of-the/439032#439032 +tmux split-window -dh -t "$TMUX_PANE" "bash --rcfile <(echo '. ~/.bashrc;$*')"