diff options
| author | Nick Roberts | 2006-07-25 05:18:11 +0000 |
|---|---|---|
| committer | Nick Roberts | 2006-07-25 05:18:11 +0000 |
| commit | 303b246dbed0f1bc281f0133d98408a45b2e056b (patch) | |
| tree | 75a08405bddf300b7ecb7a67caa381ee356de93b | |
| parent | 6cdae8d6ffd9c1e68332a641f94370d52a221b6d (diff) | |
| download | emacs-303b246dbed0f1bc281f0133d98408a45b2e056b.tar.gz emacs-303b246dbed0f1bc281f0133d98408a45b2e056b.zip | |
(gdb-set-gud-minor-mode-existing-buffers)
(gdb-resync, gdb-prompt, gdb-starting, gdb-exited, gdb-stopped)
(gdb-set-gud-minor-mode-existing-buffers-1): Use different faces
for status indicator.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 810a7b3e973..dca6fa16df0 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -434,7 +434,8 @@ With arg, use separate IO iff arg is positive." | |||
| 434 | (make-local-variable 'gdb-define-alist) | 434 | (make-local-variable 'gdb-define-alist) |
| 435 | (gdb-create-define-alist) | 435 | (gdb-create-define-alist) |
| 436 | (add-hook 'after-save-hook 'gdb-create-define-alist nil t)))))) | 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 | (defun gdb-find-watch-expression () | 440 | (defun gdb-find-watch-expression () |
| 440 | (let* ((var (nth (- (line-number-at-pos (point)) 2) gdb-var-list)) | 441 | (let* ((var (nth (- (line-number-at-pos (point)) 2) gdb-var-list)) |
| @@ -1209,7 +1210,8 @@ This filter may simply queue input for a later time." | |||
| 1209 | (defun gdb-resync() | 1210 | (defun gdb-resync() |
| 1210 | (setq gdb-flush-pending-output t) | 1211 | (setq gdb-flush-pending-output t) |
| 1211 | (setq gud-running nil) | 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 | (setq gdb-output-sink 'user) | 1215 | (setq gdb-output-sink 'user) |
| 1214 | (setq gdb-input-queue nil) | 1216 | (setq gdb-input-queue nil) |
| 1215 | (setq gdb-pending-triggers nil) | 1217 | (setq gdb-pending-triggers nil) |
| @@ -1249,7 +1251,8 @@ happens to be in effect." | |||
| 1249 | "An annotation handler for `prompt'. | 1251 | "An annotation handler for `prompt'. |
| 1250 | This sends the next command (if any) to gdb." | 1252 | This sends the next command (if any) to gdb." |
| 1251 | (when gdb-first-prompt | 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 | (gdb-init-1) | 1256 | (gdb-init-1) |
| 1254 | (setq gdb-first-prompt nil)) | 1257 | (setq gdb-first-prompt nil)) |
| 1255 | (let ((sink gdb-output-sink)) | 1258 | (let ((sink gdb-output-sink)) |
| @@ -1287,7 +1290,8 @@ not GDB." | |||
| 1287 | (progn | 1290 | (progn |
| 1288 | (setq gud-running t) | 1291 | (setq gud-running t) |
| 1289 | (setq gdb-inferior-status "running") | 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 | (gdb-remove-text-properties) | 1295 | (gdb-remove-text-properties) |
| 1292 | (setq gud-old-arrow gud-overlay-arrow-position) | 1296 | (setq gud-old-arrow gud-overlay-arrow-position) |
| 1293 | (setq gud-overlay-arrow-position nil) | 1297 | (setq gud-overlay-arrow-position nil) |
| @@ -1300,7 +1304,8 @@ not GDB." | |||
| 1300 | 1304 | ||
| 1301 | (defun gdb-signal (ignored) | 1305 | (defun gdb-signal (ignored) |
| 1302 | (setq gdb-inferior-status "signal") | 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 | (gdb-stopping ignored)) | 1309 | (gdb-stopping ignored)) |
| 1305 | 1310 | ||
| 1306 | (defun gdb-stopping (ignored) | 1311 | (defun gdb-stopping (ignored) |
| @@ -1327,7 +1332,8 @@ directives." | |||
| 1327 | (setq gdb-overlay-arrow-position nil) | 1332 | (setq gdb-overlay-arrow-position nil) |
| 1328 | (setq gud-old-arrow nil) | 1333 | (setq gud-old-arrow nil) |
| 1329 | (setq gdb-inferior-status "exited") | 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 | (gdb-stopping ignored)) | 1337 | (gdb-stopping ignored)) |
| 1332 | 1338 | ||
| 1333 | (defun gdb-signalled (ignored) | 1339 | (defun gdb-signalled (ignored) |
| @@ -1375,7 +1381,8 @@ sink to `user' in `gdb-stopping', that is fine." | |||
| 1375 | 'delete))))) | 1381 | 'delete))))) |
| 1376 | (unless (member gdb-inferior-status '("exited" "signal")) | 1382 | (unless (member gdb-inferior-status '("exited" "signal")) |
| 1377 | (setq gdb-inferior-status "stopped") | 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 | (let ((sink gdb-output-sink)) | 1386 | (let ((sink gdb-output-sink)) |
| 1380 | (cond | 1387 | (cond |
| 1381 | ((eq sink 'inferior) | 1388 | ((eq sink 'inferior) |
| @@ -3268,7 +3275,8 @@ is set in them." | |||
| 3268 | (make-local-variable 'gdb-define-alist) | 3275 | (make-local-variable 'gdb-define-alist) |
| 3269 | (gdb-create-define-alist) | 3276 | (gdb-create-define-alist) |
| 3270 | (add-hook 'after-save-hook 'gdb-create-define-alist nil t))))) | 3277 | (add-hook 'after-save-hook 'gdb-create-define-alist nil t))))) |
| 3271 | (gdb-force-mode-line-update "ready")) | 3278 | (gdb-force-mode-line-update |
| 3279 | (propertize "ready" 'face font-lock-variable-name-face))) | ||
| 3272 | 3280 | ||
| 3273 | ; Uses "-var-list-children --all-values". Needs GDB 6.1 onwards. | 3281 | ; Uses "-var-list-children --all-values". Needs GDB 6.1 onwards. |
| 3274 | (defun gdb-var-list-children-1 (varnum) | 3282 | (defun gdb-var-list-children-1 (varnum) |