aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2008-04-06 03:32:45 +0000
committerNick Roberts2008-04-06 03:32:45 +0000
commit86af339a9bf33218b561badc910dbddcff890812 (patch)
tree37eac75dc8ab5830df8063df2c217d7be12a870f
parent5a97c2890eb7a9185cd0e46191cf64d195fb662c (diff)
downloademacs-86af339a9bf33218b561badc910dbddcff890812.tar.gz
emacs-86af339a9bf33218b561badc910dbddcff890812.zip
(gdb): New group.
(gdb-debug-log-max, gdb-enable-debug) (gdb-cpp-define-alist-program, gdb-cpp-define-alist-flags) (gdb-show-main, gdb-many-windows, gdb-use-separate-io-buffer) (gdb-speedbar-auto-raise, gdb-use-colon-colon-notation) (gdb-show-changed-values, gdb-max-children) (gdb-delete-out-of-scope, gdb-same-frame, gdb-find-source-frame) (breakpoint-enabled, breakpoint-disabled, gdb-max-frames) (gdb-all-registers, gdb-memory-repeat-count, gdb-memory-format) (gdb-memory-unit): Move to new group from GUD group. (menu): Allow customization from GDB-UI menu-item.
-rw-r--r--lisp/progmodes/gdb-ui.el50
1 files changed, 29 insertions, 21 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 19710341f71..a47f842490f 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -337,9 +337,14 @@ session."
337;;;###autoload 337;;;###autoload
338(defalias 'gdba 'gdb) 338(defalias 'gdba 'gdb)
339 339
340(defgroup gdb nil
341 "Gdb Graphical Mode options specifically for running Gdb in Emacs."
342 :group 'processes
343 :group 'tools)
344
340(defcustom gdb-debug-log-max 128 345(defcustom gdb-debug-log-max 128
341 "Maximum size of `gdb-debug-log'. If nil, size is unlimited." 346 "Maximum size of `gdb-debug-log'. If nil, size is unlimited."
342 :group 'gud 347 :group 'gdb
343 :type '(choice (integer :tag "Number of elements") 348 :type '(choice (integer :tag "Number of elements")
344 (const :tag "Unlimited" nil)) 349 (const :tag "Unlimited" nil))
345 :version "22.1") 350 :version "22.1")
@@ -353,7 +358,7 @@ Most recent commands are listed first. This list stores only the last
353(defcustom gdb-enable-debug nil 358(defcustom gdb-enable-debug nil
354 "Non-nil means record the process input and output in `gdb-debug-log'." 359 "Non-nil means record the process input and output in `gdb-debug-log'."
355 :type 'boolean 360 :type 'boolean
356 :group 'gud 361 :group 'gdb
357 :version "22.1") 362 :version "22.1")
358 363
359(defcustom gdb-cpp-define-alist-program "gcc -E -dM -" 364(defcustom gdb-cpp-define-alist-program "gcc -E -dM -"
@@ -365,20 +370,20 @@ GDB, when `gud-tooltip-mode' is t.
365Set `gdb-cpp-define-alist-flags' for any include paths or 370Set `gdb-cpp-define-alist-flags' for any include paths or
366predefined macros." 371predefined macros."
367 :type 'string 372 :type 'string
368 :group 'gud 373 :group 'gdb
369 :version "22.1") 374 :version "22.1")
370 375
371(defcustom gdb-cpp-define-alist-flags "" 376(defcustom gdb-cpp-define-alist-flags ""
372 "Preprocessor flags for `gdb-cpp-define-alist-program'." 377 "Preprocessor flags for `gdb-cpp-define-alist-program'."
373 :type 'string 378 :type 'string
374 :group 'gud 379 :group 'gdb
375 :version "22.1") 380 :version "22.1")
376 381
377(defcustom gdb-show-main nil 382(defcustom gdb-show-main nil
378 "Non-nil means display source file containing the main routine at startup. 383 "Non-nil means display source file containing the main routine at startup.
379Also display the main routine in the disassembly buffer if present." 384Also display the main routine in the disassembly buffer if present."
380 :type 'boolean 385 :type 'boolean
381 :group 'gud 386 :group 'gdb
382 :version "22.1") 387 :version "22.1")
383 388
384(defcustom gdb-many-windows nil 389(defcustom gdb-many-windows nil
@@ -388,13 +393,13 @@ buffer and the other with the source file with the main routine
388of the debugged program. Non-nil means display the layout shown 393of the debugged program. Non-nil means display the layout shown
389for `gdba'." 394for `gdba'."
390 :type 'boolean 395 :type 'boolean
391 :group 'gud 396 :group 'gdb
392 :version "22.1") 397 :version "22.1")
393 398
394(defcustom gdb-use-separate-io-buffer nil 399(defcustom gdb-use-separate-io-buffer nil
395 "Non-nil means display output from the debugged program in a separate buffer." 400 "Non-nil means display output from the debugged program in a separate buffer."
396 :type 'boolean 401 :type 'boolean
397 :group 'gud 402 :group 'gdb
398 :version "22.1") 403 :version "22.1")
399 404
400(defun gdb-force-mode-line-update (status) 405(defun gdb-force-mode-line-update (status)
@@ -717,7 +722,7 @@ line, and no execution takes place."
717 "If non-nil raise speedbar every time display of watch expressions is\ 722 "If non-nil raise speedbar every time display of watch expressions is\
718 updated." 723 updated."
719 :type 'boolean 724 :type 'boolean
720 :group 'gud 725 :group 'gdb
721 :version "22.1") 726 :version "22.1")
722 727
723(defun gdb-speedbar-auto-raise (arg) 728(defun gdb-speedbar-auto-raise (arg)
@@ -735,7 +740,7 @@ positive, otherwise don't automatically raise it."
735(defcustom gdb-use-colon-colon-notation nil 740(defcustom gdb-use-colon-colon-notation nil
736 "If non-nil use FUN::VAR format to display variables in the speedbar." 741 "If non-nil use FUN::VAR format to display variables in the speedbar."
737 :type 'boolean 742 :type 'boolean
738 :group 'gud 743 :group 'gdb
739 :version "22.1") 744 :version "22.1")
740 745
741(define-key gud-minor-mode-map "\C-c\C-w" 'gud-watch) 746(define-key gud-minor-mode-map "\C-c\C-w" 'gud-watch)
@@ -970,19 +975,19 @@ type_changed=\".*?\".*?}")
970Out of scope variables are suppressed with `shadow' face. 975Out of scope variables are suppressed with `shadow' face.
971Changed values are highlighted with the face `font-lock-warning-face'." 976Changed values are highlighted with the face `font-lock-warning-face'."
972 :type 'boolean 977 :type 'boolean
973 :group 'gud 978 :group 'gdb
974 :version "22.1") 979 :version "22.1")
975 980
976(defcustom gdb-max-children 40 981(defcustom gdb-max-children 40
977 "Maximum number of children before expansion requires confirmation." 982 "Maximum number of children before expansion requires confirmation."
978 :type 'integer 983 :type 'integer
979 :group 'gud 984 :group 'gdb
980 :version "22.1") 985 :version "22.1")
981 986
982(defcustom gdb-delete-out-of-scope t 987(defcustom gdb-delete-out-of-scope t
983 "If non-nil delete watch expressions automatically when they go out of scope." 988 "If non-nil delete watch expressions automatically when they go out of scope."
984 :type 'boolean 989 :type 'boolean
985 :group 'gud 990 :group 'gdb
986 :version "22.2") 991 :version "22.2")
987 992
988(defun gdb-speedbar-expand-node (text token indent) 993(defun gdb-speedbar-expand-node (text token indent)
@@ -1467,13 +1472,13 @@ directives."
1467 1472
1468(defcustom gdb-same-frame focus-follows-mouse 1473(defcustom gdb-same-frame focus-follows-mouse
1469 "Non-nil means pop up GUD buffer in same frame." 1474 "Non-nil means pop up GUD buffer in same frame."
1470 :group 'gud 1475 :group 'gdb
1471 :type 'boolean 1476 :type 'boolean
1472 :version "22.1") 1477 :version "22.1")
1473 1478
1474(defcustom gdb-find-source-frame nil 1479(defcustom gdb-find-source-frame nil
1475 "Non-nil means try to find a source frame further up stack e.g after signal." 1480 "Non-nil means try to find a source frame further up stack e.g after signal."
1476 :group 'gud 1481 :group 'gdb
1477 :type 'boolean 1482 :type 'boolean
1478 :version "22.1") 1483 :version "22.1")
1479 1484
@@ -1887,7 +1892,7 @@ static char *magick[] = {
1887 :foreground "red1" 1892 :foreground "red1"
1888 :weight bold)) 1893 :weight bold))
1889 "Face for enabled breakpoint icon in fringe." 1894 "Face for enabled breakpoint icon in fringe."
1890 :group 'gud) 1895 :group 'gdb)
1891 1896
1892(defface breakpoint-disabled 1897(defface breakpoint-disabled
1893 '((((class color) (min-colors 88)) :foreground "grey70") 1898 '((((class color) (min-colors 88)) :foreground "grey70")
@@ -1900,7 +1905,7 @@ static char *magick[] = {
1900 :inverse-video t) 1905 :inverse-video t)
1901 (t :background "gray")) 1906 (t :background "gray"))
1902 "Face for disabled breakpoint icon in fringe." 1907 "Face for disabled breakpoint icon in fringe."
1903 :group 'gud) 1908 :group 'gdb)
1904 1909
1905(defconst gdb-breakpoint-regexp 1910(defconst gdb-breakpoint-regexp
1906 "\\(?:\\([0-9]+\\).*?\\(?:point\\|catch\\s-+\\S-+\\)\\s-+\\S-+\\|\\([0-9]+\\.[0-9]+\\)\\)\\s-+\\(.\\)\\s-+") 1911 "\\(?:\\([0-9]+\\).*?\\(?:point\\|catch\\s-+\\S-+\\)\\s-+\\S-+\\|\\([0-9]+\\.[0-9]+\\)\\)\\s-+\\(.\\)\\s-+")
@@ -2169,7 +2174,7 @@ If not in a source or disassembly buffer just set point."
2169(defcustom gdb-max-frames 40 2174(defcustom gdb-max-frames 40
2170 "Maximum number of frames displayed in call stack." 2175 "Maximum number of frames displayed in call stack."
2171 :type 'integer 2176 :type 'integer
2172 :group 'gud 2177 :group 'gdb
2173 :version "22.1") 2178 :version "22.1")
2174 2179
2175(gdb-set-buffer-rules 'gdb-stack-buffer 2180(gdb-set-buffer-rules 'gdb-stack-buffer
@@ -2412,7 +2417,7 @@ another GDB command e.g pwd, to see new frames")
2412(defcustom gdb-all-registers nil 2417(defcustom gdb-all-registers nil
2413 "Non-nil means include floating-point registers." 2418 "Non-nil means include floating-point registers."
2414 :type 'boolean 2419 :type 'boolean
2415 :group 'gud 2420 :group 'gdb
2416 :version "22.1") 2421 :version "22.1")
2417 2422
2418(gdb-set-buffer-rules 'gdb-registers-buffer 2423(gdb-set-buffer-rules 'gdb-registers-buffer
@@ -2519,7 +2524,7 @@ another GDB command e.g pwd, to see new frames")
2519(defcustom gdb-memory-repeat-count 32 2524(defcustom gdb-memory-repeat-count 32
2520 "Number of data items in memory window." 2525 "Number of data items in memory window."
2521 :type 'integer 2526 :type 'integer
2522 :group 'gud 2527 :group 'gdb
2523 :version "22.1") 2528 :version "22.1")
2524 2529
2525(defcustom gdb-memory-format "x" 2530(defcustom gdb-memory-format "x"
@@ -2529,7 +2534,7 @@ another GDB command e.g pwd, to see new frames")
2529 (const :tag "Unsigned decimal" "u") 2534 (const :tag "Unsigned decimal" "u")
2530 (const :tag "Octal" "o") 2535 (const :tag "Octal" "o")
2531 (const :tag "Binary" "t")) 2536 (const :tag "Binary" "t"))
2532 :group 'gud 2537 :group 'gdb
2533 :version "22.1") 2538 :version "22.1")
2534 2539
2535(defcustom gdb-memory-unit "w" 2540(defcustom gdb-memory-unit "w"
@@ -2538,7 +2543,7 @@ another GDB command e.g pwd, to see new frames")
2538 (const :tag "Halfword" "h") 2543 (const :tag "Halfword" "h")
2539 (const :tag "Word" "w") 2544 (const :tag "Word" "w")
2540 (const :tag "Giant word" "g")) 2545 (const :tag "Giant word" "g"))
2541 :group 'gud 2546 :group 'gdb
2542 :version "22.1") 2547 :version "22.1")
2543 2548
2544(gdb-set-buffer-rules 'gdb-memory-buffer 2549(gdb-set-buffer-rules 'gdb-memory-buffer
@@ -3000,6 +3005,9 @@ corresponding to the mode line clicked."
3000 (define-key gud-menu-map [ui] 3005 (define-key gud-menu-map [ui]
3001 `(menu-item (if (eq gud-minor-mode 'gdba) "GDB-UI" "GDB-MI") 3006 `(menu-item (if (eq gud-minor-mode 'gdba) "GDB-UI" "GDB-MI")
3002 ,menu :visible (memq gud-minor-mode '(gdbmi gdba)))) 3007 ,menu :visible (memq gud-minor-mode '(gdbmi gdba))))
3008 (define-key menu [gdb-customize]
3009 '(menu-item "Customize" (lambda () (interactive) (customize-group 'gdb))
3010 :help "Customize Gdb Graphical Mode options."))
3003 (define-key menu [gdb-find-source-frame] 3011 (define-key menu [gdb-find-source-frame]
3004 '(menu-item "Look For Source Frame" gdb-find-source-frame 3012 '(menu-item "Look For Source Frame" gdb-find-source-frame
3005 :visible (eq gud-minor-mode 'gdba) 3013 :visible (eq gud-minor-mode 'gdba)