diff options
| author | Nick Roberts | 2008-04-30 02:27:52 +0000 |
|---|---|---|
| committer | Nick Roberts | 2008-04-30 02:27:52 +0000 |
| commit | 37c7234307a4c14dc41fbf8a430700d31c8c8b6d (patch) | |
| tree | f4cadf04e65e2c4f7a27aa71f109282b57c2c167 | |
| parent | fe3769a60e37c1fed53e690c5aae19f5d760df85 (diff) | |
| download | emacs-37c7234307a4c14dc41fbf8a430700d31c8c8b6d.tar.gz emacs-37c7234307a4c14dc41fbf8a430700d31c8c8b6d.zip | |
(gdb-frame-handler-1): Make overlay arrow
hollow if not in innermost frame.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index a4e53c47fe1..d96dc4b7711 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -2288,11 +2288,13 @@ corresponding to the mode line clicked." | |||
| 2288 | (forward-line 1)) | 2288 | (forward-line 1)) |
| 2289 | (forward-line -1) | 2289 | (forward-line -1) |
| 2290 | (when (looking-at "(More stack frames follow...)") | 2290 | (when (looking-at "(More stack frames follow...)") |
| 2291 | (add-text-properties (match-beginning 0) (match-end 0) | 2291 | (add-text-properties |
| 2292 | '(mouse-face highlight | 2292 | (match-beginning 0) (match-end 0) |
| 2293 | gdb-max-frames t | 2293 | '(mouse-face highlight |
| 2294 | help-echo | 2294 | gdb-max-frames t |
| 2295 | "mouse-2, RET: customize gdb-max-frames to see more frames"))))) | 2295 | help-echo |
| 2296 | "mouse-2, RET: customize gdb-max-frames to see more frames" | ||
| 2297 | ))))) | ||
| 2296 | (when gdb-look-up-stack | 2298 | (when gdb-look-up-stack |
| 2297 | (goto-char (point-min)) | 2299 | (goto-char (point-min)) |
| 2298 | (when (re-search-forward "\\(\\S-+?\\):\\([0-9]+\\)" nil t) | 2300 | (when (re-search-forward "\\(\\S-+?\\):\\([0-9]+\\)" nil t) |
| @@ -3645,6 +3647,19 @@ from=\"\\(.*?\\)\"\\)") | |||
| 3645 | (if (gdb-get-buffer 'gdb-assembler-buffer) | 3647 | (if (gdb-get-buffer 'gdb-assembler-buffer) |
| 3646 | (with-current-buffer (gdb-get-buffer 'gdb-assembler-buffer) | 3648 | (with-current-buffer (gdb-get-buffer 'gdb-assembler-buffer) |
| 3647 | (setq mode-name (concat "Machine:" gdb-selected-frame))))) | 3649 | (setq mode-name (concat "Machine:" gdb-selected-frame))))) |
| 3650 | (if (and (match-string 4) (match-string 5) gud-overlay-arrow-position) | ||
| 3651 | (let ((buffer (marker-buffer gud-overlay-arrow-position)) | ||
| 3652 | (position (marker-position gud-overlay-arrow-position))) | ||
| 3653 | (when (and buffer | ||
| 3654 | (string-equal (file-name-nondirectory | ||
| 3655 | (buffer-file-name buffer)) | ||
| 3656 | (file-name-nondirectory (match-string 4)))) | ||
| 3657 | (with-current-buffer buffer | ||
| 3658 | (setq fringe-indicator-alist | ||
| 3659 | (if (string-equal gdb-frame-number "0") | ||
| 3660 | nil | ||
| 3661 | '((overlay-arrow . hollow-right-triangle)))) | ||
| 3662 | (set-marker gud-overlay-arrow-position position))))) | ||
| 3648 | (gdb-invalidate-assembler)) | 3663 | (gdb-invalidate-assembler)) |
| 3649 | 3664 | ||
| 3650 | ; Uses "-var-list-children --all-values". Needs GDB 6.4 onwards. | 3665 | ; Uses "-var-list-children --all-values". Needs GDB 6.4 onwards. |