Function: gud-gdb-completions

gud-gdb-completions is a byte-compiled function defined in gud.el.gz.

Signature

(gud-gdb-completions CONTEXT COMMAND)

Documentation

Completion table for GDB commands.

COMMAND is the prefix for which we seek completion. CONTEXT is the text before COMMAND on the line.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gud.el.gz
(defun gud-gdb-completions (context command)
  "Completion table for GDB commands.
COMMAND is the prefix for which we seek completion.
CONTEXT is the text before COMMAND on the line."
  (let* ((complete-list
	  (gud-gdb-run-command-fetch-lines (concat "complete " context command)
					   (current-buffer)
					   ;; From string-match above.
					   (length context))))
    ;; Protect against old versions of GDB.
    (and complete-list
	 (string-match "^Undefined command: \"complete\"" (car complete-list))
	 (error "This version of GDB doesn't support the `complete' command"))
    (gud-gdb-completions-1 complete-list)))