Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Phil Muldoon <pmuldoon@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Add visible flag to breakpoints.
Date: Thu, 30 Sep 2010 17:55:00 -0000	[thread overview]
Message-ID: <m3y6ajqjpl.fsf@redhat.com> (raw)
In-Reply-To: <201009301542.57057.pedro@codesourcery.com> (Pedro Alves's	message of "Thu, 30 Sep 2010 15:42:56 +0100")

Pedro Alves <pedro@codesourcery.com> writes:


> Can you give an example of a use case where you would want to be
> able to show/hide breakpoints from the user _after_ they've been
> created?  This looks like something that has potential to confuse
> users.  E.g., "my gdb sometimes creates breakpoint 10 and then
> skips to create breakpoint 20, what gives?  where are 11-19?".

I don't have one.  I purely created the API for scripting utility, I have no
objections whatsoever to removing the setter.

> If toggling the new visible attribute isn't really necessary,
> did you consider instead a new "internal-or-not-internal" flag to
> the breakpoint constructor?  An internal breakpoint is just a
> breakpoint with number < 0, and as such is not visible to
> the user.

I replied to Dan on this.  Could I ask you to read my reply there?
Thanks!

> As is, your patch does not consider for example the
> "delete" command --- it wipes all non-internal breakpoints, even
> if hidden!  That's potential for breaking the python client
> code that creates and manages such breakpoints.  I suggest
> you go through breakpoint.c and inspect all checks against
> b->number < 0 or b->number >= 0.

'delete breakpoints' have always been likely to confuse python scripts
that set breakpoints (now, and in this new visibility patch).  I did the
checks you mentioned.  I'm just not sure how to work around it given my
objections to using internal breakpoints.  What do you think?

>
>>         (create_new_breakpoint): Renamed from create_new_breakpoint.  Add
>>         visible parameter.
>
> Renamed from create_breakpoint.
>
>> +# Test invisible breakpooints.


Thanks

Cheers,

Phil


  reply	other threads:[~2010-09-30 16:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-30 16:28 Phil Muldoon
2010-09-30 16:41 ` Daniel Jacobowitz
2010-09-30 17:51   ` Phil Muldoon
2010-09-30 17:55     ` Pedro Alves
2010-09-30 18:12       ` Phil Muldoon
2010-10-08 12:51       ` Phil Muldoon
2010-10-08 13:35         ` Pedro Alves
2010-10-08 14:04           ` Phil Muldoon
2010-10-08 18:44             ` Tom Tromey
2010-10-12 20:25               ` Phil Muldoon
2010-10-12 21:34                 ` Tom Tromey
2010-10-13 12:45                   ` Phil Muldoon
2010-10-13 13:06                     ` Phil Muldoon
2010-10-13 15:36                     ` Tom Tromey
2010-10-16 18:42                     ` Pedro Alves
2010-10-16 19:03             ` Pedro Alves
2010-10-18 16:09               ` Tom Tromey
2010-10-22 21:05                 ` Phil Muldoon
2010-10-22 21:31                   ` Eli Zaretskii
2010-10-22 21:37                     ` Phil Muldoon
2010-10-23  9:07                       ` Eli Zaretskii
2010-10-31 21:07                   ` Pedro Alves
2010-11-11 14:36                     ` Phil Muldoon
2010-11-12 12:43                       ` Ken Werner
2010-11-12 12:49                         ` Pedro Alves
2010-11-12 12:58                           ` Ken Werner
2010-10-08 18:40         ` Tom Tromey
2010-09-30 17:04 ` Pedro Alves
2010-09-30 17:55   ` Phil Muldoon [this message]
2010-09-30 17:51 ` Eli Zaretskii
2010-10-05 22:28 ` Tom Tromey

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=m3y6ajqjpl.fsf@redhat.com \
    --to=pmuldoon@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@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