aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-05-30 08:07:44 +0000
committerNick Roberts2006-05-30 08:07:44 +0000
commit8a464f1b547fc86a236bc386722d003e847b3257 (patch)
treebd9056a391f61481d9852e3c5f40a1ce5e4e982c
parent1b7519892e45a5ebfea1f531ce50b45b655f6c4f (diff)
downloademacs-8a464f1b547fc86a236bc386722d003e847b3257.tar.gz
emacs-8a464f1b547fc86a236bc386722d003e847b3257.zip
Move gdb-mouse-toggle-breakpoint-* to
C-mouse-1. Move gdb-mouse-until to mouse-3, gdb-mouse-jump to C-mouse-3 (for 2 button mice). (gdb-send): Do the right thing for C-d.
-rw-r--r--lisp/progmodes/gdb-ui.el38
1 files changed, 18 insertions, 20 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index f5d08d533fd..3e21c5b3341 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -71,11 +71,11 @@
71;;; Known Bugs: 71;;; Known Bugs:
72 72
73;; 1) Strings that are watched don't update in the speedbar when their 73;; 1) Strings that are watched don't update in the speedbar when their
74;; contents change unless the first character changes. 74;; contents change unless the first character changes.
75;; 2) Cannot handle multiple debug sessions. 75;; 2) Cannot handle multiple debug sessions.
76;; 3) Initially, the assembler buffer does not display the cursor at the 76;; 3) M-x gdb doesn't work with "run" command in .gdbinit, use M-x gdba instead.
77;; current line if the line is not visible in the window (but when testing 77;; 4) M-x gdb doesn't work if the corefile is specified in the command in the
78;; gdb-assembler-custom with a lisp debugger it does!). 78;; minibuffer, use M-x gdba instead (or specify the core in the GUD buffer).
79 79
80;;; Problems with watch expressions, GDB/MI: 80;;; Problems with watch expressions, GDB/MI:
81;; 1) They go out of scope when the inferior is re-run. 81;; 1) They go out of scope when the inferior is re-run.
@@ -83,15 +83,10 @@
83;; 3) VARNUM increments even when variable object is not created 83;; 3) VARNUM increments even when variable object is not created
84;; (maybe trivial). 84;; (maybe trivial).
85 85
86;; Known Bugs:
87;; 1) M-x gdb doesn't work with "run" command in .gdbinit, use M-x gdba instead.
88
89;;; TODO: 86;;; TODO:
90;; 1) Use MI command -data-read-memory for memory window. 87;; 1) Use MI command -data-read-memory for memory window.
91;; 2) Use tree-widget.el instead of the speedbar for watch-expressions? 88;; 2) Use tree-widget.el instead of the speedbar for watch-expressions?
92;; 3) Mark breakpoint locations on scroll-bar of source buffer? 89;; 3) Mark breakpoint locations on scroll-bar of source buffer?
93;; 4) With gud-print and gud-pstar, print the variable name in the GUD
94;; buffer instead of the value's history number.
95 90
96;;; Code: 91;;; Code:
97 92
@@ -493,26 +488,28 @@ With arg, use separate IO iff arg is positive."
493 'gdb-mouse-set-clear-breakpoint) 488 'gdb-mouse-set-clear-breakpoint)
494 (define-key gud-minor-mode-map [left-fringe mouse-1] 489 (define-key gud-minor-mode-map [left-fringe mouse-1]
495 'gdb-mouse-set-clear-breakpoint) 490 'gdb-mouse-set-clear-breakpoint)
496 (define-key gud-minor-mode-map [left-fringe mouse-2] 491 (define-key gud-minor-mode-map [left-margin C-mouse-1]
497 'gdb-mouse-until) 492 'gdb-mouse-toggle-breakpoint-margin)
493 (define-key gud-minor-mode-map [left-fringe C-mouse-1]
494 'gdb-mouse-toggle-breakpoint-fringe)
495
498 (define-key gud-minor-mode-map [left-margin drag-mouse-1] 496 (define-key gud-minor-mode-map [left-margin drag-mouse-1]
499 'gdb-mouse-until) 497 'gdb-mouse-until)
500 (define-key gud-minor-mode-map [left-fringe drag-mouse-1] 498 (define-key gud-minor-mode-map [left-fringe drag-mouse-1]
501 'gdb-mouse-until) 499 'gdb-mouse-until)
502 (define-key gud-minor-mode-map [left-margin mouse-2] 500 (define-key gud-minor-mode-map [left-margin mouse-3]
503 'gdb-mouse-until) 501 'gdb-mouse-until)
502 (define-key gud-minor-mode-map [left-fringe mouse-3]
503 'gdb-mouse-until)
504
504 (define-key gud-minor-mode-map [left-margin C-drag-mouse-1] 505 (define-key gud-minor-mode-map [left-margin C-drag-mouse-1]
505 'gdb-mouse-jump) 506 'gdb-mouse-jump)
506 (define-key gud-minor-mode-map [left-fringe C-drag-mouse-1] 507 (define-key gud-minor-mode-map [left-fringe C-drag-mouse-1]
507 'gdb-mouse-jump) 508 'gdb-mouse-jump)
508 (define-key gud-minor-mode-map [left-fringe C-mouse-2] 509 (define-key gud-minor-mode-map [left-fringe C-mouse-3]
509 'gdb-mouse-jump) 510 'gdb-mouse-jump)
510 (define-key gud-minor-mode-map [left-margin C-mouse-2] 511 (define-key gud-minor-mode-map [left-margin C-mouse-3]
511 'gdb-mouse-jump) 512 'gdb-mouse-jump)
512 (define-key gud-minor-mode-map [left-margin mouse-3]
513 'gdb-mouse-toggle-breakpoint-margin)
514 (define-key gud-minor-mode-map [left-fringe mouse-3]
515 'gdb-mouse-toggle-breakpoint-fringe)
516 513
517 (setq comint-input-sender 'gdb-send) 514 (setq comint-input-sender 'gdb-send)
518 515
@@ -738,7 +735,7 @@ With arg, enter name of variable to be watched in the minibuffer."
738 `(lambda () (gdb-var-evaluate-expression-handler 735 `(lambda () (gdb-var-evaluate-expression-handler
739 ,(car var) nil))))) 736 ,(car var) nil)))))
740 (if (search-forward "Undefined command" nil t) 737 (if (search-forward "Undefined command" nil t)
741 (message-box "Watching expressions requires gdb 6.0 onwards") 738 (message-box "Watching expressions requires GDB 6.0 onwards")
742 (message-box "No symbol \"%s\" in current context." expr)))) 739 (message-box "No symbol \"%s\" in current context." expr))))
743 740
744(defun gdb-speedbar-update () 741(defun gdb-speedbar-update ()
@@ -1106,7 +1103,8 @@ This filter may simply queue input for a later time."
1106 (let ((item (concat string "\n"))) 1103 (let ((item (concat string "\n")))
1107 (if gdb-enable-debug (push (cons 'send item) gdb-debug-ring)) 1104 (if gdb-enable-debug (push (cons 'send item) gdb-debug-ring))
1108 (process-send-string proc item))) 1105 (process-send-string proc item)))
1109 (if (string-match "\\\\$" string) 1106 (if (and (string-match "\\\\$" string)
1107 (not comint-input-sender-no-newline)) ;;Try to catch C-d.
1110 (setq gdb-continuation (concat gdb-continuation string "\n")) 1108 (setq gdb-continuation (concat gdb-continuation string "\n"))
1111 (let ((item (concat gdb-continuation string "\n"))) 1109 (let ((item (concat gdb-continuation string "\n")))
1112 (gdb-enqueue-input item) 1110 (gdb-enqueue-input item)