comparison lisp/progmodes/gdb-ui.el @ 83515:f7a396df2380

Merged from emacs@sv.gnu.org Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-263 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-264 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-265 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/gnus--rel--5.10--patch-99 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-100 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-555
author Karoly Lorentey <lorentey@elte.hu>
date Fri, 05 May 2006 10:30:28 +0000
parents d9f8d2a65d18 39c42b92436d
children 1321f6cfb389
comparison
equal deleted inserted replaced
83514:d9f8d2a65d18 83515:f7a396df2380
112 (defvar gdb-var-list nil 112 (defvar gdb-var-list nil
113 "List of variables in watch window. 113 "List of variables in watch window.
114 Each element has the form (VARNUM EXPRESSION NUMCHILD TYPE VALUE STATUS FP) 114 Each element has the form (VARNUM EXPRESSION NUMCHILD TYPE VALUE STATUS FP)
115 where STATUS is nil (unchanged), `changed' or `out-of-scope', FP the frame 115 where STATUS is nil (unchanged), `changed' or `out-of-scope', FP the frame
116 address for root variables.") 116 address for root variables.")
117 (defvar gdb-force-update t
118 "Non-nil means that view of watch expressions will be updated in the speedbar.")
119 (defvar gdb-main-file nil "Source file from which program execution begins.") 117 (defvar gdb-main-file nil "Source file from which program execution begins.")
120 (defvar gdb-overlay-arrow-position nil) 118 (defvar gdb-overlay-arrow-position nil)
121 (defvar gdb-server-prefix nil) 119 (defvar gdb-server-prefix nil)
122 (defvar gdb-flush-pending-output nil) 120 (defvar gdb-flush-pending-output nil)
123 (defvar gdb-location-alist nil 121 (defvar gdb-location-alist nil
525 gdb-previous-frame nil 523 gdb-previous-frame nil
526 gdb-selected-frame nil 524 gdb-selected-frame nil
527 gdb-current-language nil 525 gdb-current-language nil
528 gdb-frame-number nil 526 gdb-frame-number nil
529 gdb-var-list nil 527 gdb-var-list nil
530 gdb-force-update t
531 gdb-main-file nil 528 gdb-main-file nil
532 gdb-first-post-prompt t 529 gdb-first-post-prompt t
533 gdb-prompting nil 530 gdb-prompting nil
534 gdb-input-queue nil 531 gdb-input-queue nil
535 gdb-current-item nil 532 gdb-current-item nil
1379 (gdb-invalidate-threads) 1376 (gdb-invalidate-threads)
1380 (unless (eq system-type 'darwin) ;Breaks on Darwin's GDB-5.3. 1377 (unless (eq system-type 'darwin) ;Breaks on Darwin's GDB-5.3.
1381 ;; FIXME: with GDB-6 on Darwin, this might very well work. 1378 ;; FIXME: with GDB-6 on Darwin, this might very well work.
1382 ;; Only needed/used with speedbar/watch expressions. 1379 ;; Only needed/used with speedbar/watch expressions.
1383 (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) 1380 (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame))
1384 (setq gdb-force-update t)
1385 (if (string-equal gdb-version "pre-6.4") 1381 (if (string-equal gdb-version "pre-6.4")
1386 (gdb-var-update) 1382 (gdb-var-update)
1387 (gdb-var-update-1))))) 1383 (gdb-var-update-1)))))
1388 (setq gdb-first-post-prompt nil) 1384 (setq gdb-first-post-prompt nil)
1389 (let ((sink gdb-output-sink)) 1385 (let ((sink gdb-output-sink))
3164 (setq mode-name (concat "Machine:" gdb-selected-frame)))) 3160 (setq mode-name (concat "Machine:" gdb-selected-frame))))
3165 (setq gdb-pc-address (match-string 1)) 3161 (setq gdb-pc-address (match-string 1))
3166 (if (and (match-string 3) gud-overlay-arrow-position) 3162 (if (and (match-string 3) gud-overlay-arrow-position)
3167 (let ((buffer (marker-buffer gud-overlay-arrow-position)) 3163 (let ((buffer (marker-buffer gud-overlay-arrow-position))
3168 (position (marker-position gud-overlay-arrow-position))) 3164 (position (marker-position gud-overlay-arrow-position)))
3169 (when (and buffer (string-equal (buffer-name buffer) (match-string 3))) 3165 (when (and buffer
3166 (string-equal (buffer-name buffer)
3167 (file-name-nondirectory (match-string 3))))
3170 (with-current-buffer buffer 3168 (with-current-buffer buffer
3171 (setq fringe-indicator-alist 3169 (setq fringe-indicator-alist
3172 (if (string-equal gdb-frame-number "0") 3170 (if (string-equal gdb-frame-number "0")
3173 nil 3171 nil
3174 '((overlay-arrow . hollow-right-triangle)))) 3172 '((overlay-arrow . hollow-right-triangle))))