[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in emacs running gdb on Redhat 7.3
From: |
ceftin |
Subject: |
Bug in emacs running gdb on Redhat 7.3 |
Date: |
16 Apr 2003 21:43:55 -0700 |
Hi,
I found a bug with the out-of-the box distribution of emacs 21.2.1
with Redhat 7.3. While debugging programs using gdb in emacs, the
arrow which indicates the current line of execution disappeared. I
could not figure out why this happening, and I found a posting in some
obscure place (I don't remember where), that gave me the fix. The
problem is in a function in python-mode.el. I simply included the fix
in my .emacs file:
(defun py-pdbtrack-overlay-arrow (activation)
"Activate or de arrow at beginning-of-line in current buffer."
;; This was derived/simplified from edebug-overlay-arrow
(cond (activation
(setq overlay-arrow-position (make-marker))
(setq overlay-arrow-string "=>")
(set-marker overlay-arrow-position (py-point 'bol)
(current-buffer))
(setq py-pdbtrack-is-tracking-p t))
(py-pdbtrack-is-tracking-p
(setq overlay-arrow-position nil)
(setq py-pdbtrack-is-tracking-p nil))
))
))
And that did the trick. I don't know why it was happening, and I don't
understand the fix. But, since I am tired of seeing postings without
answers or answers proper keywords making them hard to locate, I
thought I'd post this fix for others.
Hope this helps.
Later,
Mehul
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in emacs running gdb on Redhat 7.3,
ceftin <=