From: "Douglas Evans" <dje@google.com>
To: "Vladimir Prus" <vladimir@codesourcery.com>
Cc: gdb@sources.redhat.com
Subject: Re: template breakpoints
Date: Tue, 09 Oct 2007 20:17:00 -0000 [thread overview]
Message-ID: <e394668d0710091317q2e672192hdff275c23b171dbe@mail.gmail.com> (raw)
In-Reply-To: <200710092156.39099.vladimir@codesourcery.com>
On 10/9/07, Vladimir Prus <vladimir@codesourcery.com> wrote:
>
> Ah, I see what you mean. As it stands now, condition, command, and ignore
> count is per-breakpoint, not per-location. It was suggested that ignore count
> and hit count be made per-breakpoint, but was outside the code of the original
^^^^^^^^^^^^^^^^^
> work.
The phrasing here is a bit confusing. Did you mean per-location here
(^^^^) ? [I'm not suggesting an opinion on what it should be, just
trying to understand the current plan.]
> As for condition, I'm not sure. On code level it's not hard to support, but there
> are issues.
>
> First issue is technical. A breakpoint is reevaluated as any
> shared library is loaded and unloaded. If you set per-location
> condition, you probably want that condition to be still active
> after the library containing the location is unloaded and reloaded
> several time, and application restarted. To do that, we need to somehow
> track location's identity, and I don't know 100% reliable solution.
> We have similar problem with enable/disable state, but there, at worst
> case you'll stop on location you don't care about. With per-location
> condition, you can just loose your condition.
>
> Another issue is "why?". Presumably, if you want a specific condition
> for just one template instantiation, you can just set breakpoint on
> that template instatiation? I basically worry that the user interface
> will become too complex to be usable.
Thanks. I'm all for a good u/i. At the moment I'm just trying to
understand what the plan is going forward.
How about breakpoint commands? Are they considered akin to conditions
(and thus the plan is to leave them as is)?
prev parent reply other threads:[~2007-10-09 20:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-06 5:10 Douglas Evans
2007-10-06 10:43 ` Vladimir Prus
2007-10-06 18:09 ` Douglas Evans
2007-10-08 22:35 ` Douglas Evans
2007-10-09 4:57 ` Vladimir Prus
2007-10-09 17:44 ` Douglas Evans
2007-10-09 17:57 ` Vladimir Prus
2007-10-09 20:17 ` Douglas Evans [this message]
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=e394668d0710091317q2e672192hdff275c23b171dbe@mail.gmail.com \
--to=dje@google.com \
--cc=gdb@sources.redhat.com \
--cc=vladimir@codesourcery.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox