[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[a kludge] (was: highlight lines with gud breakpoints)

From: Uwe Brauer
Subject: [a kludge] (was: highlight lines with gud breakpoints)
Date: Wed, 10 Apr 2019 14:41:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

   > On April 10, 2019 3:03:52 PM GMT+03:00, Uwe Brauer <address@hidden> 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 


(require 'gdb-mi)
(setq default-text-properties '(foo 1111))

(defun set_breakpt_cmds ()
  "Set Breakpoint and indicate on Editor"
  (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 ()
  (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: smime.p7s
Description: S/MIME cryptographic signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]