Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: Markus Deuling <deuling@de.ibm.com>, gdb-patches@sources.redhat.com
Subject: Re: [0/9] Breakpoints at multiple locations
Date: Mon, 10 Sep 2007 15:38:00 -0000	[thread overview]
Message-ID: <E1IUlLB-0008Bp-1C@zigzag.lvk.cs.msu.su> (raw)
In-Reply-To: <46E5501E.9080205@de.ibm.com>

Markus Deuling wrote:

> 
>>> Vladimir Prus schrieb:
>>>> Once the library is unloaded, we get:
>>>>
>>>>         Num Type           Disp Enb  Address    What
>>>>         1   breakpoint     keep y    <MULTIPLE>
>>>>                 breakpoint already hit 2 times
>>>>         1.1                     y(p) 0xb7f9856d helper.hpp:4
>>>>         1.2                     n(p) 0xb7f98588 helper.hpp:4
>>> Just an idea but for my opinion it would be great to have a hit-counter
>>> per location like:
>>>
>>>          Num Type           Disp Hit Enb  Address    What
>>>          1   breakpoint     keep   8 y    <MULTIPLE>
>>>          1.1                       5 y(p) 0xb7f9856d helper.hpp:4
>>>          1.2                       3 n(p) 0xb7f98588 helper.hpp:4
>>>
>>> The <MULTIPLE> entity could add up the counts of all locations.  This
>>> would also get rid of the annoying "breakpoint already hit xy times"
>>> line :-)
>>>
>>> What do you think?
>> 
>> That can possibly be interesting, but how will you handle 'ignore'
>> count then? Should it be per-location, too?
>> 
>> I actually don't think those patches are final -- I expect some UI tweaks
>> to be made when this feature is more used.
> 
> Hm, after a very-quick-look through breakpoint.c I see no problem in
> moving both ignore_count and hit_count to per-location. I guess it would
> make sense to let these two together and have them in a per-location way.
> This reflects reality best. GDB may want to set different ignore counts to
> different breakpoint locations and count how often a specific location was
> hit.

There's no technical problem doing that. However, I'm not quite sure if this
is good idea in general, and I even less sure what MI frontends might want
to do. Recall that now, I operates in kind of compatibility mode -- it does not list
breakpoint locations at all. So if we change to per-location hit/ignore, we need
to think how to not break MI frontends, and we should think how future MI version
will handle all this.

> 
> Maybe thats something to come up with after the initial patch set for your
> multiple location breakpoints are committed.

Definitely, maintaining this all locally is too much work, so tweaking
interface is better done separately.

- Volodya





      reply	other threads:[~2007-09-10 15:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 20:11 Vladimir Prus
2007-09-07 22:18 ` Pierre Muller
2007-09-08 11:57 ` Eli Zaretskii
2007-09-08 14:32   ` Vladimir Prus
2007-09-08 16:27     ` Nathan J. Williams
2007-09-08 16:40       ` Vladimir Prus
2007-09-08 16:52         ` Daniel Jacobowitz
2007-09-10  4:47     ` Markus Deuling
2007-09-10  7:44       ` Vladimir Prus
2007-09-10 14:11         ` Markus Deuling
2007-09-10 15:38           ` Vladimir Prus [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=E1IUlLB-0008Bp-1C@zigzag.lvk.cs.msu.su \
    --to=ghost@cs.msu.su \
    --cc=deuling@de.ibm.com \
    --cc=gdb-patches@sources.redhat.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