From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: [a kludge] (was: highlight lines with gud breakpoints)
Date: Wed, 10 Apr 2019 14:41:12 +0200 [thread overview]
Message-ID: <87pnpuav87.fsf_-_@mat.ucm.es> (raw)
In-Reply-To: BFF4B236-C2C9-462D-8E93-18419878D2F4@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]
> On April 10, 2019 3:03:52 PM GMT+03:00, Uwe Brauer <oub@mat.ucm.es> wrote:
> Maybe I misunderstood you: the feature you described is available with
> "M-x gdb". If you mean GUD in general, then AFAIK it doesn't show
> breakpoints at all, so I'm confused by what exactly did you want to
> achieve on GUI frames.
How I found the following kludge in
https://stackoverflow.com/questions/40071598/emacs-how-to-enable-highlighting-breakpoints-in-a-text-terminal-emacs-nw
(require 'gdb-mi)
(setq default-text-properties '(foo 1111))
(defun set_breakpt_cmds ()
"Set Breakpoint and indicate on Editor"
(interactive)
(gud-break 1)
(gdb-put-breakpoint-icon "false" (get-text-property 1 'foo)))
Problem is: how to I remove the icon
(defun remove-breakpoint-icons ()
(interactive)
(move-beginning-of-line 1)
(mark-end-of-line 1)
(gdb-remove-breakpoint-icons (region-beginning) (region-end)))
Sort of works, but it is a real kludge. Any comments?
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]
next prev parent reply other threads:[~2019-04-10 12:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-10 11:01 highlight lines with gud breakpoints Uwe Brauer
2019-04-10 11:55 ` Eli Zaretskii
2019-04-10 11:57 ` Uwe Brauer
2019-04-10 12:07 ` Eli Zaretskii
2019-04-10 12:03 ` Uwe Brauer
2019-04-10 12:11 ` Eli Zaretskii
2019-04-10 12:17 ` Uwe Brauer
2019-04-10 12:36 ` Eli Zaretskii
2019-04-10 12:41 ` Uwe Brauer [this message]
2019-04-10 13:02 ` [a kludge] Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pnpuav87.fsf_-_@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.