Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
81649041
Commit
81649041
authored
May 28, 2005
by
Nick Roberts
Browse files
(gdb-assembler-custom): Be more careful about preserving point.
parent
3daabddd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
lisp/progmodes/gdb-ui.el
lisp/progmodes/gdb-ui.el
+17
-15
No files found.
lisp/progmodes/gdb-ui.el
View file @
81649041
...
...
@@ -2439,20 +2439,21 @@ BUFFER nil or omitted means use the current buffer."
(let ((buffer (gdb-get-buffer 'gdb-assembler-buffer))
(pos 1) (address) (flag) (bptno))
(with-current-buffer buffer
(if (not (equal gdb-frame-address "main"))
(progn
(goto-char (point-min))
(if (and gdb-frame-address
(re-search-forward gdb-frame-address nil t))
(progn
(setq pos (point))
(beginning-of-line)
(or gdb-overlay-arrow-position
(setq gdb-overlay-arrow-position (make-marker)))
(set-marker gdb-overlay-arrow-position
(point) (current-buffer))))))
;; remove all breakpoint-icons in assembler buffer before updating.
(gdb-remove-breakpoint-icons (point-min) (point-max)))
(save-excursion
(if (not (equal gdb-frame-address "main"))
(progn
(goto-char (point-min))
(if (and gdb-frame-address
(re-search-forward gdb-frame-address nil t))
(progn
(setq pos (point))
(beginning-of-line)
(or gdb-overlay-arrow-position
(setq gdb-overlay-arrow-position (make-marker)))
(set-marker gdb-overlay-arrow-position
(point) (current-buffer))))))
;; remove all breakpoint-icons in assembler buffer before updating.
(gdb-remove-breakpoint-icons (point-min) (point-max))))
(with-current-buffer (gdb-get-buffer 'gdb-breakpoints-buffer)
(goto-char (point-min))
(while (< (point) (- (point-max) 1))
...
...
@@ -2465,9 +2466,10 @@ BUFFER nil or omitted means use the current buffer."
(setq flag (char-after (match-beginning 2)))
(setq address (match-string 3))
(with-current-buffer buffer
(save-excursion
(goto-char (point-min))
(if (re-search-forward address nil t)
(gdb-put-breakpoint-icon (eq flag ?y) bptno)))))))
(gdb-put-breakpoint-icon (eq flag ?y) bptno)))))))
)
(if (not (equal gdb-frame-address "main"))
(set-window-point (get-buffer-window buffer 0) pos))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment