runtime(termdebug): convert termdebug plugin to Vim9 script

closes: #14903

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@volvo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ubaldo Tiberi
2024-06-05 21:27:38 +02:00
committed by Christian Brabandt
parent 7cbed350f8
commit 23f29ffc64
2 changed files with 1220 additions and 1144 deletions

View File

@ -1,4 +1,4 @@
*terminal.txt* For Vim version 9.1. Last change: 2024 Mar 17 *terminal.txt* For Vim version 9.1. Last change: 2024 Jun 05
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -1332,8 +1332,8 @@ Put focus on the gdb window to type commands there. Some common ones are:
*:Run* *:Arguments* *:Run* *:Arguments*
In the window showing the source code these commands can be used to control In the window showing the source code these commands can be used to control
gdb: gdb:
`:Run` [args] run the program with [args] or the previous arguments :Run [args] run the program with [args] or the previous arguments
`:Arguments` {args} set arguments for the next `:Run` :Arguments {args} set arguments for the next `:Run`
*:Break* set a breakpoint at the cursor position *:Break* set a breakpoint at the cursor position
:Break {position} :Break {position}
@ -1379,10 +1379,10 @@ breakpoint, or use the "Clear breakpoint" right-click menu entry.
Inspecting variables ~ Inspecting variables ~
*termdebug-variables* *:Evaluate* *termdebug-variables* *:Evaluate*
`:Evaluate` evaluate the expression under the cursor :Evaluate evaluate the expression under the cursor
`K` same (see |termdebug_map_K| to disable) K same (see |termdebug_map_K| to disable)
`:Evaluate` {expr} evaluate {expr} :Evaluate {expr} evaluate {expr}
`:'<,'>Evaluate` evaluate the Visually selected text :'<,'>Evaluate evaluate the Visually selected text
This is similar to using "print" in the gdb window. This is similar to using "print" in the gdb window.
You can usually shorten `:Evaluate` to `:Ev`. You can usually shorten `:Evaluate` to `:Ev`.
@ -1390,14 +1390,14 @@ You can usually shorten `:Evaluate` to `:Ev`.
Navigating stack frames ~ Navigating stack frames ~
*termdebug-frames* *:Frame* *:Up* *:Down* *termdebug-frames* *:Frame* *:Up* *:Down*
`:Frame` [frame] select frame [frame], which is a frame number, :Frame [frame] select frame [frame], which is a frame number,
address, or function name (default: current frame) address, or function name (default: current frame)
`:Up` [count] go up [count] frames (default: 1; the frame that :Up [count] go up [count] frames (default: 1; the frame that
called the current) called the current)
`+` same (see |termdebug_map_plus| to disable) + same (see |termdebug_map_plus| to disable)
`:Down` [count] go down [count] frames (default: 1; the frame called :Down [count] go down [count] frames (default: 1; the frame called
by the current) by the current)
`-` same (see |termdebug_map_minus| to disable) - same (see |termdebug_map_minus| to disable)
Other commands ~ Other commands ~

File diff suppressed because it is too large Load Diff