patch 8.0.1668: terminal debugger: can't re-open source code window
Problem: Terminal debugger: can't re-open source code window.
Solution: Add the :Source command. Also create the window if needed when
gdb stops at a source line.
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index 9a1c1d2..2d1af11 100644
--- a/runtime/doc/terminal.txt
+++ b/runtime/doc/terminal.txt
@@ -731,6 +731,11 @@
You can add the window toolbar in other windows you open with: >
:Winbar
+If gdb stops at a source line and there is no window currently showing the
+source code, a new window will be created for the source code. This also
+happens if the buffer in the source code window has been modified and can't be
+abandoned.
+
Inspecting variables ~
*termdebug-variables*
@@ -745,8 +750,10 @@
Other commands ~
*termdebug-commands*
- :Gdb jump to the gdb window
- :Program jump to the window with the running program
+ :Gdb jump to the gdb window
+ :Program jump to the window with the running program
+ :Source jump to the window with the source code, create it if there
+ isn't one
Communication ~