runtime(termdebug): add frame related commands (#12511)

implementing `:Frame`, `:Up` and `:Down'

partially fixing #10393

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Simon Sobisch
2023-08-22 22:19:14 +02:00
committed by GitHub
parent 6551ace0fe
commit 2ae7ffe0bc
2 changed files with 106 additions and 0 deletions

View File

@ -1376,6 +1376,21 @@ This is similar to using "print" in the gdb window.
You can usually shorten `:Evaluate` to `:Ev`.
Navigation in the Stack ~
*termdebug-variables* *:Frame*
`:Frame` Select the given frame, using either the frame's
stack number, address, or function name.
`:Up` Select the frame that called the current one with an
optional argument to say how many frames to go up.
`+` same (see |termdebug_map_plus| to disable)
`:Down` Select the frame called by the current one with
an optional argument to say how many frames to go down.
`-` same (see |termdebug_map_minus| to disable)
This is similar to using "print" in the gdb window.
You can usually shorten `:Evaluate` to `:Ev`.
Other commands ~
*termdebug-commands*
*:Gdb* jump to the gdb window
@ -1453,6 +1468,14 @@ The K key is normally mapped to :Evaluate. If you do not want this use: >
let g:termdebug_config['map_K'] = 0
If there is no g:termdebug_config you can use: >
let g:termdebug_map_K = 0
<
*termdebug_map_minus*
The - key is normally mapped to :Down. If you do not want this use: >
let g:termdebug_config['map_minus'] = 0
<
*termdebug_map_plus*
The + key is normally mapped to :Up. If you do not want this use: >
let g:termdebug_config['map_plus'] = 0
<
*termdebug_disasm_window*
If you want the Asm window shown by default, set the "disasm_window" flag to