Changeset 4131 for trunk/lisp/progmodes/gdb-ui.el
- Timestamp:
- 07/29/06 07:48:34 (2 years ago)
- Files:
-
- trunk/lisp/progmodes/gdb-ui.el (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/progmodes/gdb-ui.el
r4111 r4131 435 435 (gdb-create-define-alist) 436 436 (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))) 438 439 439 440 (defun gdb-find-watch-expression () … … 1210 1211 (setq gdb-flush-pending-output t) 1211 1212 (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)) 1213 1215 (setq gdb-output-sink 'user) 1214 1216 (setq gdb-input-queue nil) … … 1250 1252 This sends the next command (if any) to gdb." 1251 1253 (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)) 1253 1256 (gdb-init-1) 1254 1257 (setq gdb-first-prompt nil)) … … 1288 1291 (setq gud-running t) 1289 1292 (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)) 1291 1295 (gdb-remove-text-properties) 1292 1296 (setq gud-old-arrow gud-overlay-arrow-position) … … 1301 1305 (defun gdb-signal (ignored) 1302 1306 (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)) 1304 1309 (gdb-stopping ignored)) 1305 1310 … … 1328 1333 (setq gud-old-arrow nil) 1329 1334 (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)) 1331 1337 (gdb-stopping ignored)) 1332 1338 … … 1376 1382 (unless (member gdb-inferior-status '("exited" "signal")) 1377 1383 (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))) 1379 1386 (let ((sink gdb-output-sink)) 1380 1387 (cond … … 1748 1755 (with-current-buffer (gdb-get-buffer 'gdb-breakpoints-buffer) 1749 1756 (save-excursion 1757 (let ((buffer-read-only nil)) 1750 1758 (goto-char (point-min)) 1751 1759 (while (< (point) (- (point-max) 1)) … … 1756 1764 (setq bptno (match-string 1)) 1757 1765 (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))) 1758 1771 (beginning-of-line) 1759 1772 (if (re-search-forward " in \\(.*\\) at\\s-+" nil t) 1760 1773 (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)) 1764 1777 (looking-at "\\(\\S-+\\):\\([0-9]+\\)") 1765 (let ((line (match-string 2)) (buffer-read-only nil)1778 (let ((line (match-string 2)) 1766 1779 (file (match-string 1))) 1767 1780 (add-text-properties (line-beginning-position) … … 1793 1806 `(lambda () (gdb-get-location 1794 1807 ,bptno ,line ,flag)))))))))) 1795 (end-of-line))))) 1808 (end-of-line)))))) 1796 1809 (if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom))) 1797 1810 … … 3269 3282 (gdb-create-define-alist) 3270 3283 (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))) 3272 3286 3273 3287 ; Uses "-var-list-children --all-values". Needs GDB 6.1 onwards.
