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
f48e9893
Commit
f48e9893
authored
Nov 23, 2003
by
Kim F. Storm
Browse files
(gdb-mouse-toggle-breakpoint): New defun.
(gdba): Bind it to [left-margin mouse-1] and [left-fringe mouse-1].
parent
76693d12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
lisp/gdb-ui.el
lisp/gdb-ui.el
+17
-0
No files found.
lisp/gdb-ui.el
View file @
f48e9893
...
...
@@ -145,6 +145,9 @@ The following interactive lisp functions help control operation :
(
gud-call
"until *%a"
arg
)))
"\C-u"
"Continue to current line or address."
)
(
define-key
gud-minor-mode-map
[left-margin
mouse-1]
'gdb-mouse-toggle-breakpoint
)
(
define-key
gud-minor-mode-map
[left-fringe
mouse-1]
'gdb-mouse-toggle-breakpoint
)
(
setq
comint-input-sender
'gdb-send
)
;;
;; (re-)initialise
...
...
@@ -1055,6 +1058,20 @@ static char *magick[] = {
(
end-of-line
)))))
(
if
(
gdb-get-buffer
'gdb-assembler-buffer
)
(
gdb-assembler-custom
)))
(
defun
gdb-mouse-toggle-breakpoint
(
event
)
"Toggle breakpoint with mouse click in left margin."
(
interactive
"e"
)
(
mouse-minibuffer-check
event
)
(
let
((
posn
(
event-end
event
)))
(
message
"pt=%S posn=%S"
(
posn-point
posn
)
posn
)
(
if
(
numberp
(
posn-point
posn
))
(
with-selected-window
(
posn-window
posn
)
(
save-excursion
(
goto-char
(
posn-point
posn
))
(
if
(
posn-object
posn
)
(
gud-remove
nil
)
(
gud-break
nil
)))))))
(
defun
gdb-breakpoints-buffer-name
()
(
with-current-buffer
gud-comint-buffer
(
concat
"*breakpoints of "
(
gdb-get-target-string
)
"*"
)))
...
...
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