Show
Ignore:
Timestamp:
07/29/06 07:48:34 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/progmodes/gdb-ui.el

    r4111 r4131  
    435435            (gdb-create-define-alist) 
    436436            (add-hook 'after-save-hook 'gdb-create-define-alist nil t)))))) 
    437   (gdb-force-mode-line-update "ready")) 
     437  (gdb-force-mode-line-update 
     438   (propertize "ready" 'face font-lock-variable-name-face))) 
    438439 
    439440(defun gdb-find-watch-expression () 
     
    12101211  (setq gdb-flush-pending-output t) 
    12111212  (setq gud-running nil) 
    1212   (gdb-force-mode-line-update "stopped") 
     1213  (gdb-force-mode-line-update 
     1214   (propertize "stopped"'face font-lock-warning-face)) 
    12131215  (setq gdb-output-sink 'user) 
    12141216  (setq gdb-input-queue nil) 
     
    12501252This sends the next command (if any) to gdb." 
    12511253  (when gdb-first-prompt 
    1252     (gdb-force-mode-line-update "initializing...") 
     1254    (gdb-force-mode-line-update  
     1255     (propertize "initializing..." 'face font-lock-variable-name-face)) 
    12531256    (gdb-init-1) 
    12541257    (setq gdb-first-prompt nil)) 
     
    12881291        (setq gud-running t) 
    12891292        (setq gdb-inferior-status "running") 
    1290         (gdb-force-mode-line-update gdb-inferior-status) 
     1293        (gdb-force-mode-line-update 
     1294         (propertize gdb-inferior-status 'face font-lock-type-face)) 
    12911295        (gdb-remove-text-properties) 
    12921296        (setq gud-old-arrow gud-overlay-arrow-position) 
     
    13011305(defun gdb-signal (ignored) 
    13021306  (setq gdb-inferior-status "signal") 
    1303   (gdb-force-mode-line-update gdb-inferior-status) 
     1307  (gdb-force-mode-line-update 
     1308   (propertize gdb-inferior-status 'face font-lock-warning-face)) 
    13041309  (gdb-stopping ignored)) 
    13051310 
     
    13281333  (setq gud-old-arrow nil) 
    13291334  (setq gdb-inferior-status "exited") 
    1330   (gdb-force-mode-line-update gdb-inferior-status) 
     1335  (gdb-force-mode-line-update 
     1336   (propertize gdb-inferior-status 'face font-lock-warning-face)) 
    13311337  (gdb-stopping ignored)) 
    13321338 
     
    13761382  (unless (member gdb-inferior-status '("exited" "signal")) 
    13771383    (setq gdb-inferior-status "stopped") 
    1378     (gdb-force-mode-line-update gdb-inferior-status)) 
     1384    (gdb-force-mode-line-update 
     1385     (propertize gdb-inferior-status 'face font-lock-warning-face))) 
    13791386  (let ((sink gdb-output-sink)) 
    13801387    (cond 
     
    17481755    (with-current-buffer (gdb-get-buffer 'gdb-breakpoints-buffer) 
    17491756      (save-excursion 
     1757        (let ((buffer-read-only nil)) 
    17501758        (goto-char (point-min)) 
    17511759        (while (< (point) (- (point-max) 1)) 
     
    17561764                (setq bptno (match-string 1)) 
    17571765                (setq flag (char-after (match-beginning 2))) 
     1766                (add-text-properties 
     1767                 (match-beginning 2) (match-end 2) 
     1768                 (if (eq flag ?y) 
     1769                     '(face font-lock-warning-face) 
     1770                   '(face font-lock-type-face))) 
    17581771                (beginning-of-line) 
    17591772                (if (re-search-forward " in \\(.*\\) at\\s-+" nil t) 
    17601773                    (progn 
    1761                       (let ((buffer-read-only nil)) 
    1762                        (add-text-properties (match-beginning 1) (match-end 1) 
    1763                                             '(face font-lock-function-name-face))) 
     1774                      (add-text-properties 
     1775                      (match-beginning 1) (match-end 1) 
     1776                       '(face font-lock-function-name-face)) 
    17641777                      (looking-at "\\(\\S-+\\):\\([0-9]+\\)") 
    1765                       (let ((line (match-string 2)) (buffer-read-only nil) 
     1778                      (let ((line (match-string 2)) 
    17661779                            (file (match-string 1))) 
    17671780                        (add-text-properties (line-beginning-position) 
     
    17931806                                 `(lambda () (gdb-get-location 
    17941807                                              ,bptno ,line ,flag)))))))))) 
    1795           (end-of-line))))) 
     1808          (end-of-line)))))) 
    17961809  (if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom))) 
    17971810 
     
    32693282          (gdb-create-define-alist) 
    32703283          (add-hook 'after-save-hook 'gdb-create-define-alist nil t))))) 
    3271   (gdb-force-mode-line-update "ready")) 
     3284  (gdb-force-mode-line-update 
     3285   (propertize "ready" 'face font-lock-variable-name-face))) 
    32723286 
    32733287; Uses "-var-list-children --all-values".  Needs GDB 6.1 onwards.