summaryrefslogtreecommitdiff
path: root/runtime/doc/terminal.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-14 18:59:50 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-14 18:59:50 +0200
commitb3623a382abc8f8e2bcfba4c1a2aa06b7578eb8d (patch)
tree945be9af9b64231e8cc4a631a01faab41a151c67 /runtime/doc/terminal.txt
parent8c041b6b95f49f7383cf00e2036cf009b326fa8d (diff)
downloadvim-git-b3623a382abc8f8e2bcfba4c1a2aa06b7578eb8d.tar.gz
patch 8.0.1713: terminal debugger doesn't handle argumentsv8.0.1713
Problem: Terminal debugger doesn't handle arguments. Solution: Use <f-args> and pass all the arguments to gdb, e.g. the core file or process number. (suggested by Christian Brabandt) Disallow starting the debugger twice.
Diffstat (limited to 'runtime/doc/terminal.txt')
-rw-r--r--runtime/doc/terminal.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index 23e210dc8..8deba3922 100644
--- a/runtime/doc/terminal.txt
+++ b/runtime/doc/terminal.txt
@@ -649,6 +649,13 @@ the same as any command running in a terminal window.
When the debugger ends, typically by typing "quit" in the gdb window, the two
opened windows are closed.
+Only one debugger can be active at a time.
+
+To attach gdb to an already running executable, or use a core file, pass extra
+arguments. E.g.: >
+ :Termdebug vim core
+ :Termdebug vim 98343
+
Example session ~
*termdebug-example*