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


From: Nick Roberts
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el
Date: Tue, 01 Mar 2005 05:43:05 -0500

Index: emacs/lisp/progmodes/gdb-ui.el
diff -c emacs/lisp/progmodes/gdb-ui.el:1.50 emacs/lisp/progmodes/gdb-ui.el:1.51
*** emacs/lisp/progmodes/gdb-ui.el:1.50 Sat Feb 19 05:08:49 2005
--- emacs/lisp/progmodes/gdb-ui.el      Tue Mar  1 10:43:05 2005
***************
*** 880,887 ****
    "An annotation handler for `post-prompt'.
  This begins the collection of output from the current command if that
  happens to be appropriate."
!   (if (not gdb-pending-triggers)
!       (progn
        (gdb-get-current-frame)
        (gdb-invalidate-frames)
        (gdb-invalidate-breakpoints)
--- 880,886 ----
    "An annotation handler for `post-prompt'.
  This begins the collection of output from the current command if that
  happens to be appropriate."
!   (unless gdb-pending-triggers
        (gdb-get-current-frame)
        (gdb-invalidate-frames)
        (gdb-invalidate-breakpoints)
***************
*** 897,903 ****
            (setq gdb-var-changed t)    ; force update
            (dolist (var gdb-var-list)
              (setcar (nthcdr 5 var) nil))
!           (gdb-var-update)))))
    (let ((sink gdb-output-sink))
      (cond
       ((eq sink 'user) t)
--- 896,902 ----
            (setq gdb-var-changed t)    ; force update
            (dolist (var gdb-var-list)
              (setcar (nthcdr 5 var) nil))
!           (gdb-var-update))))
    (let ((sink gdb-output-sink))
      (cond
       ((eq sink 'user) t)
***************
*** 1211,1224 ****
                                  (goto-line (string-to-number line))
                                  (gdb-put-breakpoint-icon (eq flag ?y) bptno)))
                            (gdb-enqueue-input
!                            (list (concat gdb-server-prefix "list "
                                           (match-string-no-properties 1) 
":1\n")
                                   'ignore))
                            (gdb-enqueue-input
!                            (list (concat gdb-server-prefix "info source\n")
!                                  `(lambda ()
!                                     (gdb-get-location
!                                      ,bptno ,line ,flag)))))))))))
          (end-of-line)))))
    (if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom)))
  
--- 1210,1222 ----
                                  (goto-line (string-to-number line))
                                  (gdb-put-breakpoint-icon (eq flag ?y) bptno)))
                            (gdb-enqueue-input
!                            (list (concat "list "
                                           (match-string-no-properties 1) 
":1\n")
                                   'ignore))
                            (gdb-enqueue-input
!                            (list "info source\n"
!                                  `(lambda () (gdb-get-location
!                                               ,bptno ,line ,flag)))))))))))
          (end-of-line)))))
    (if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom)))
  
***************
*** 2108,2129 ****
    "Find the directory containing the relevant source file.
  Put in buffer and place breakpoint icon."
    (goto-char (point-min))
!   (if (search-forward "Located in " nil t)
!       (if (looking-at "\\S-*")
!         (push (cons bptno (match-string 0)) gdb-location-list))
!     (gdb-resync)
!     (push (cons bptno "File not found") gdb-location-list)
!     (error "Cannot find source file for breakpoint location.
  Add directory to search path for source files using the GDB command, dir."))
!   (with-current-buffer
!       (find-file-noselect (match-string 0))
!     (save-current-buffer
!       (set (make-local-variable 'gud-minor-mode) 'gdba)
!       (set (make-local-variable 'tool-bar-map) gud-tool-bar-map))
!     ;; only want one breakpoint icon at each location
!     (save-excursion
!       (goto-line (string-to-number line))
!       (gdb-put-breakpoint-icon (eq flag ?y) bptno))))
  
  (add-hook 'find-file-hook 'gdb-find-file-hook)
  
--- 2106,2134 ----
    "Find the directory containing the relevant source file.
  Put in buffer and place breakpoint icon."
    (goto-char (point-min))
!   (catch 'file-not-found
!     (if (search-forward "Located in " nil t)
!       (if (looking-at "\\S-*")
!           (push (cons bptno (match-string 0)) gdb-location-list))
!       (gdb-resync)
!       (push (cons bptno "File not found") gdb-location-list)
!       (if (eq window-system 'x)
!         (x-popup-dialog
!          t '("Cannot find source file for breakpoint location.\n\
! Add directory to search path for source files using the GDB command, dir."
!              ("Ok" . nil)))
!       (message "Cannot find source file for breakpoint location.\n\
  Add directory to search path for source files using the GDB command, dir."))
!       (throw 'file-not-found nil))
!     (with-current-buffer
!       (find-file-noselect (match-string 0))
!       (save-current-buffer
!       (set (make-local-variable 'gud-minor-mode) 'gdba)
!       (set (make-local-variable 'tool-bar-map) gud-tool-bar-map))
!       ;; only want one breakpoint icon at each location
!       (save-excursion
!       (goto-line (string-to-number line))
!       (gdb-put-breakpoint-icon (eq flag ?y) bptno)))))
  
  (add-hook 'find-file-hook 'gdb-find-file-hook)
  




reply via email to

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