emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el [emacs-unicode-2


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el [emacs-unicode-2]
Date: Tue, 29 Jun 2004 13:25:05 -0400

Index: emacs/lisp/progmodes/gdb-ui.el
diff -c emacs/lisp/progmodes/gdb-ui.el:1.7.2.2 
emacs/lisp/progmodes/gdb-ui.el:1.7.2.3
*** emacs/lisp/progmodes/gdb-ui.el:1.7.2.2      Mon Jun 28 07:29:43 2004
--- emacs/lisp/progmodes/gdb-ui.el      Tue Jun 29 16:45:26 2004
***************
*** 29,38 ****
  ;; GDB through the GUD buffer in the usual way, but there are also further
  ;; buffers which control the execution and describe the state of your program.
  ;; It separates the input/output of your program from that of GDB, if
! ;; required, and displays expressions and their current values in their own
! ;; buffers. It also uses features of Emacs 21 such as the display margin for
! ;; breakpoints, and the toolbar (see the GDB Graphical Interface section in
! ;; the Emacs info manual).
  
  ;; Start the debugger with M-x gdba.
  
--- 29,37 ----
  ;; GDB through the GUD buffer in the usual way, but there are also further
  ;; buffers which control the execution and describe the state of your program.
  ;; It separates the input/output of your program from that of GDB, if
! ;; required, and watches expressions in the speedbar. It also uses features of
! ;; Emacs 21 such as the fringe/display margin for breakpoints, and the toolbar
! ;; (see the GDB Graphical Interface section in the Emacs info manual).
  
  ;; Start the debugger with M-x gdba.
  
***************
*** 40,46 ****
  ;; Kingdon and uses GDB's annotation interface. You don't need to know about
  ;; annotations to use this mode as a debugger, but if you are interested
  ;; developing the mode itself, then see the Annotations section in the GDB
! ;; info manual. 
  ;;
  ;; GDB developers plan to make the annotation interface obsolete. A new
  ;; interface called GDB/MI (machine interface) has been designed to replace
--- 39,45 ----
  ;; Kingdon and uses GDB's annotation interface. You don't need to know about
  ;; annotations to use this mode as a debugger, but if you are interested
  ;; developing the mode itself, then see the Annotations section in the GDB
! ;; info manual.
  ;;
  ;; GDB developers plan to make the annotation interface obsolete. A new
  ;; interface called GDB/MI (machine interface) has been designed to replace
***************
*** 71,77 ****
  (defvar gdb-variables '()
    "A list of variables that are local to the GUD buffer.")
  (defvar gdb-server-prefix nil)
!  
  ;;;###autoload
  (defun gdba (command-line)
    "Run gdb on program FILE in buffer *gud-FILE*.
--- 70,76 ----
  (defvar gdb-variables '()
    "A list of variables that are local to the GUD buffer.")
  (defvar gdb-server-prefix nil)
! 
  ;;;###autoload
  (defun gdba (command-line)
    "Run gdb on program FILE in buffer *gud-FILE*.
***************
*** 228,234 ****
        (if (string-equal expr (car var)) (throw 'already-watched nil)))
        (set-text-properties 0 (length expr) nil expr)
        (gdb-enqueue-input
!        (list 
        (if (eq gud-minor-mode 'gdba)
            (concat "server interpreter mi \"-var-create - * "  expr "\"\n")
          (concat"-var-create - * "  expr "\n"))
--- 227,233 ----
        (if (string-equal expr (car var)) (throw 'already-watched nil)))
        (set-text-properties 0 (length expr) nil expr)
        (gdb-enqueue-input
!        (list
        (if (eq gud-minor-mode 'gdba)
            (concat "server interpreter mi \"-var-create - * "  expr "\"\n")
          (concat"-var-create - * "  expr "\n"))
***************
*** 327,333 ****
    (if (not (member 'gdb-var-update gdb-pending-triggers))
        (progn
        (gdb-enqueue-input
!        (list 
          (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba))
              "server interpreter mi \"-var-update *\"\n"
            "-var-update *\n")
--- 326,332 ----
    (if (not (member 'gdb-var-update gdb-pending-triggers))
        (progn
        (gdb-enqueue-input
!        (list
          (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba))
              "server interpreter mi \"-var-update *\"\n"
            "-var-update *\n")
***************
*** 363,369 ****
               (varnum (cadr var)))
          (unless (string-match "\\." varnum)
            (gdb-enqueue-input
!            (list 
              (if (with-current-buffer gud-comint-buffer
                    (eq gud-minor-mode 'gdba))
                  (concat "server interpreter mi \"-var-delete " varnum "\"\n")
--- 362,368 ----
               (varnum (cadr var)))
          (unless (string-match "\\." varnum)
            (gdb-enqueue-input
!            (list
              (if (with-current-buffer gud-comint-buffer
                    (eq gud-minor-mode 'gdba))
                  (concat "server interpreter mi \"-var-delete " varnum "\"\n")
***************
*** 487,493 ****
          (set (make-local-variable 'gdb-buffer-type) key)
          (if (cdr (cdr rules))
              (funcall (car (cdr (cdr rules)))))
!         (set (make-local-variable 'gud-minor-mode) 
               (with-current-buffer gud-comint-buffer gud-minor-mode))
          (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)
          new))))
--- 486,492 ----
          (set (make-local-variable 'gdb-buffer-type) key)
          (if (cdr (cdr rules))
              (funcall (car (cdr (cdr rules)))))
!         (set (make-local-variable 'gud-minor-mode)
               (with-current-buffer gud-comint-buffer gud-minor-mode))
          (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)
          new))))
***************
*** 1077,1089 ****
    '((t
       :inherit fringe
       :foreground "red"))
!   "Face for enabled breakpoint icon in fringe.")
  
  (defface breakpoint-disabled-bitmap-face
    '((t
       :inherit fringe
       :foreground "grey60"))
!   "Face for disabled breakpoint icon in fringe.")
  
  
  ;;-put breakpoint icons in relevant margins (even those set in the GUD buffer)
--- 1076,1090 ----
    '((t
       :inherit fringe
       :foreground "red"))
!   "Face for enabled breakpoint icon in fringe."
!   :group 'gud)
  
  (defface breakpoint-disabled-bitmap-face
    '((t
       :inherit fringe
       :foreground "grey60"))
!   "Face for disabled breakpoint icon in fringe."
!   :group 'gud)
  
  
  ;;-put breakpoint icons in relevant margins (even those set in the GUD buffer)
***************
*** 1207,1214 ****
         (list
        (concat
         (if (eq ?y (char-after (match-beginning 2)))
!            gdb-server-prefix "disable "
!          gdb-server-prefix "enable ")
         (match-string 1) "\n")
        'ignore)))))
  
--- 1208,1215 ----
         (list
        (concat
         (if (eq ?y (char-after (match-beginning 2)))
!            (concat gdb-server-prefix "disable ")
!          (concat gdb-server-prefix "enable "))
         (match-string 1) "\n")
        'ignore)))))
  
***************
*** 1226,1235 ****
    (interactive)
    (save-excursion
      (beginning-of-line 1)
!     (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdbmi))
!       (looking-at 
"[0-9]*\\s-*\\S-*\\s-*\\S-*\\s-*.\\s-*\\S-*\\s-*\\(\\S-*\\):\\([0-9]+\\)")
!       (re-search-forward "in\\s-+\\S-+\\s-+at\\s-+" nil t)
!       (looking-at "\\(\\S-*\\):\\([0-9]+\\)")))
    (if (match-string 2)
        (let ((line (match-string 2))
            (file (match-string 1)))
--- 1227,1238 ----
    (interactive)
    (save-excursion
      (beginning-of-line 1)
!     (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba))
!       (progn
!         (re-search-forward "in\\s-+\\S-+\\s-+at\\s-+" nil t)
!         (looking-at "\\(\\S-*\\):\\([0-9]+\\)"))
!     (looking-at
!      
"[0-9]*\\s-*\\S-*\\s-*\\S-*\\s-*.\\s-*\\S-*\\s-*\\(\\S-*\\):\\([0-9]+\\)")))
    (if (match-string 2)
        (let ((line (match-string 2))
            (file (match-string 1)))
***************
*** 1836,1842 ****
            (save-current-buffer
              (setq left-margin-width 2)
              (if (get-buffer-window (current-buffer) 'visible)
!                 (set-window-margins 
                   (get-buffer-window (current-buffer) 'visible)
                   left-margin-width right-margin-width))))
          (put-image
--- 1839,1845 ----
            (save-current-buffer
              (setq left-margin-width 2)
              (if (get-buffer-window (current-buffer) 'visible)
!                 (set-window-margins
                   (get-buffer-window (current-buffer) 'visible)
                   left-margin-width right-margin-width))))
          (put-image
***************
*** 1863,1869 ****
        (save-current-buffer
          (setq left-margin-width 2)
          (if (get-buffer-window (current-buffer) 'visible)
!             (set-window-margins 
               (get-buffer-window (current-buffer) 'visible)
               left-margin-width right-margin-width))))
        (gdb-put-string (if enabled "B" "b") (1+ start)))))
--- 1866,1872 ----
        (save-current-buffer
          (setq left-margin-width 2)
          (if (get-buffer-window (current-buffer) 'visible)
!             (set-window-margins
               (get-buffer-window (current-buffer) 'visible)
               left-margin-width right-margin-width))))
        (gdb-put-string (if enabled "B" "b") (1+ start)))))
***************
*** 1875,1881 ****
    (when remove-margin
      (setq left-margin-width 0)
      (if (get-buffer-window (current-buffer) 'visible)
!       (set-window-margins 
         (get-buffer-window (current-buffer) 'visible)
         left-margin-width right-margin-width))))
  
--- 1878,1884 ----
    (when remove-margin
      (setq left-margin-width 0)
      (if (get-buffer-window (current-buffer) 'visible)
!       (set-window-margins
         (get-buffer-window (current-buffer) 'visible)
         left-margin-width right-margin-width))))
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]