aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-12-01 02:33:20 +0000
committerGlenn Morris2007-12-01 02:33:20 +0000
commitda567a4f47f2fe23201b39d13c02151aac3019c5 (patch)
treef620ef181d924a4f02a5d8fd1391dbace24b6289
parent6297397b28d2abdd11c1e715ec65368f5ef722fa (diff)
downloademacs-da567a4f47f2fe23201b39d13c02151aac3019c5.tar.gz
emacs-da567a4f47f2fe23201b39d13c02151aac3019c5.zip
(gdb-create-define-alist)
(gdb-restore-windows, gdb-reset, global-hl-line-highlight) (hl-line-highlight, gdb-display-source-buffer) (gdb-display-buffer, c-langelem-sym, c-langelem-pos) (syntax-symbol, syntax-point, gdb-enqueue-input): Declare as functions.
-rw-r--r--lisp/progmodes/gud.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index ce231f4c662..3c6736ac79b 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -318,6 +318,8 @@ Uses `gud-<MINOR-MODE>-directories' to find the source files."
318 (setq directories (cdr directories))) 318 (setq directories (cdr directories)))
319 result))) 319 result)))
320 320
321(declare-function gdb-create-define-alist "gdb-ui" ())
322
321(defun gud-find-file (file) 323(defun gud-find-file (file)
322 ;; Don't get confused by double slashes in the name that comes from GDB. 324 ;; Don't get confused by double slashes in the name that comes from GDB.
323 (while (string-match "//+" file) 325 (while (string-match "//+" file)
@@ -709,6 +711,9 @@ The option \"--fullname\" must be included in this value."
709(defvar gud-filter-pending-text nil 711(defvar gud-filter-pending-text nil
710 "Non-nil means this is text that has been saved for later in `gud-filter'.") 712 "Non-nil means this is text that has been saved for later in `gud-filter'.")
711 713
714;; If in gdba mode, gdb-ui is loaded.
715(declare-function gdb-restore-windows "gdb-ui" ())
716
712;; The old gdb command (text command mode). The new one is in gdb-ui.el. 717;; The old gdb command (text command mode). The new one is in gdb-ui.el.
713;;;###autoload 718;;;###autoload
714(defun gud-gdb (command-line) 719(defun gud-gdb (command-line)
@@ -2597,6 +2602,8 @@ It is saved for when this flag is not set.")
2597(defvar gud-overlay-arrow-position nil) 2602(defvar gud-overlay-arrow-position nil)
2598(add-to-list 'overlay-arrow-variable-list 'gud-overlay-arrow-position) 2603(add-to-list 'overlay-arrow-variable-list 'gud-overlay-arrow-position)
2599 2604
2605(declare-function gdb-reset "gdb-ui" ())
2606
2600(defun gud-sentinel (proc msg) 2607(defun gud-sentinel (proc msg)
2601 (cond ((null (buffer-name (process-buffer proc))) 2608 (cond ((null (buffer-name (process-buffer proc)))
2602 ;; buffer killed 2609 ;; buffer killed
@@ -2666,6 +2673,11 @@ Obeying it means displaying in another window the specified file and line."
2666 (setq gud-last-last-frame gud-last-frame 2673 (setq gud-last-last-frame gud-last-frame
2667 gud-last-frame nil))) 2674 gud-last-frame nil)))
2668 2675
2676(declare-function global-hl-line-highlight "hl-line" ())
2677(declare-function hl-line-highlight "hl-line" ())
2678(declare-function gdb-display-source-buffer "gdb-ui" (buffer))
2679(declare-function gdb-display-buffer "gdb-ui" (buf dedicated &optional size))
2680
2669;; Make sure the file named TRUE-FILE is in a buffer that appears on the screen 2681;; Make sure the file named TRUE-FILE is in a buffer that appears on the screen
2670;; and that its line LINE is visible. 2682;; and that its line LINE is visible.
2671;; Put the overlay-arrow on the line LINE in that buffer. 2683;; Put the overlay-arrow on the line LINE in that buffer.
@@ -2998,6 +3010,12 @@ Link exprs of the form:
2998 (t nil))) 3010 (t nil)))
2999 (t nil)))) 3011 (t nil))))
3000 3012
3013
3014(declare-function c-langelem-sym "cc-defs" (langelem))
3015(declare-function c-langelem-pos "cc-defs" (langelem))
3016(declare-function syntax-symbol "gud" (x))
3017(declare-function syntax-point "gud" (x))
3018
3001(defun gud-find-class (f line) 3019(defun gud-find-class (f line)
3002 "Find fully qualified class in file F at line LINE. 3020 "Find fully qualified class in file F at line LINE.
3003This function uses the `gud-jdb-classpath' (and optional 3021This function uses the `gud-jdb-classpath' (and optional
@@ -3383,6 +3401,8 @@ With arg, dereference expr if ARG is positive, otherwise do not derereference."
3383 ((xdb pdb) (concat "p " expr)) 3401 ((xdb pdb) (concat "p " expr))
3384 (sdb (concat expr "/")))) 3402 (sdb (concat expr "/"))))
3385 3403
3404(declare-function gdb-enqueue-input "gdb-ui" (item))
3405
3386(defun gud-tooltip-tips (event) 3406(defun gud-tooltip-tips (event)
3387 "Show tip for identifier or selection under the mouse. 3407 "Show tip for identifier or selection under the mouse.
3388The mouse must either point at an identifier or inside a selected 3408The mouse must either point at an identifier or inside a selected