You can also start gdb normally, then switch to split screen, with “ctrl-x ctrl-a” (thanks to Gregory).
Upper screen shows the source code with a moving marker
–Here’s my full gdb command showing
- –args to run the target executable with arguments
- redirect stderr to a file so my gdb screen isn’t messed up — not always effective
gdb –tui –args $base/shared/tp_xtap/bin/xtap -D 9 -c $base/etc/test_replay.cfg 2 >