mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 11:00:45 -08:00
(gdb-goto-breakpoint, gdb-frames-select, gdb-threads-select):
Use `posn-set-point' instead of `mouse-set-point' because the latter is not fbound when configured without X.
This commit is contained in:
parent
d05877b438
commit
53f18ed2c8
1 changed files with 3 additions and 3 deletions
|
|
@ -1620,7 +1620,7 @@ static char *magick[] = {
|
|||
(defun gdb-goto-breakpoint (&optional event)
|
||||
"Display the breakpoint location specified at current line."
|
||||
(interactive (list last-input-event))
|
||||
(if event (mouse-set-point event))
|
||||
(if event (posn-set-point (event-end event)))
|
||||
;; Hack to stop gdb-goto-breakpoint displaying in GUD buffer.
|
||||
(let ((window (get-buffer-window gud-comint-buffer)))
|
||||
(if window (save-selected-window (select-window window))))
|
||||
|
|
@ -1745,7 +1745,7 @@ static char *magick[] = {
|
|||
(defun gdb-frames-select (&optional event)
|
||||
"Select the frame and display the relevant source."
|
||||
(interactive (list last-input-event))
|
||||
(if event (mouse-set-point event))
|
||||
(if event (posn-set-point (event-end event)))
|
||||
(gdb-enqueue-input
|
||||
(list (concat gdb-server-prefix "frame "
|
||||
(gdb-get-frame-number) "\n") 'ignore))
|
||||
|
|
@ -1830,7 +1830,7 @@ static char *magick[] = {
|
|||
(defun gdb-threads-select (&optional event)
|
||||
"Select the thread and display the relevant source."
|
||||
(interactive (list last-input-event))
|
||||
(if event (mouse-set-point event))
|
||||
(if event (posn-set-point (event-end event)))
|
||||
(gdb-enqueue-input
|
||||
(list (concat gdb-server-prefix "thread "
|
||||
(gdb-get-thread-number) "\n") 'ignore))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue