Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Phil Muldoon <pmuldoon@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch][python] Add breakpoint support.
Date: Mon, 29 Mar 2010 15:15:00 -0000	[thread overview]
Message-ID: <83d3yn17mm.fsf@gnu.org> (raw)
In-Reply-To: <4BB0BEE7.4080305@redhat.com>

> Date: Mon, 29 Mar 2010 15:53:27 +0100
> From: Phil Muldoon <pmuldoon@redhat.com>
> CC: gdb-patches@sourceware.org
> 
> >> +@tindex gdb.Breakpoint
> >> +@tindex Breakpoint
> > 
> > You already added index entries with the same names, albeit in
> > different letter-case, elsewhere in the manual.  Why is it a good idea
> > to have these here as well?
> 
> 
> Not sure what you mean here, can you please elaborate?

You have these index entries in your patch:

    +@findex gdb.breakpoints
    +@defun breakpoints
    +@tindex gdb.Breakpoint
    +@tindex Breakpoint

They are identical, except for the letter-case.

> >> +If a watchpoint type is not provided, it is assumed to be a @var{WP_READ}
> >> +type. 
> > 
> > ?? Really?  WP_WRITE sounds a more logical choice, as it's the default
> > watchpoint type in GDB.
> 
> 
> I do not have any strong feelings here.  I can make it write by
> default if you think it would be more sensible.

WP_WRITE is what I'd expect, but I'd be interested in what others
think.

> >> +@defivar Breakpoint location
> >> +This attribute holds the location of the breakpoint, as specified by
> >> +the user.  It is a string.  If the breakpoint does not have a location
> >> +(that is, it is a watchpoint) an exception will be raised.
> > 
> > Is it wise to raise an exception?  Why not return something sensible
> > instead?
> > 
> >> +the user.  It is a string.  If the breakpoint does not have an
> >> +expression (the breakpoint is not a watchpoint) an exception will be
> >> +raised.
> > 
> > Same here.
> 
> 
> Would returning Py_NONE work? 

Yes, I think so.


  reply	other threads:[~2010-03-29 15:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 13:52 Phil Muldoon
2010-03-29 14:28 ` Eli Zaretskii
2010-03-29 14:53   ` Phil Muldoon
2010-03-29 15:15     ` Eli Zaretskii [this message]
2010-04-05 16:27 ` Joel Brobecker
2010-04-06 13:47   ` Phil Muldoon
2010-04-06 18:21     ` Eli Zaretskii
2010-04-07 21:09     ` Tom Tromey
2010-04-08 12:42       ` Phil Muldoon
2010-04-08 15:29         ` Joel Brobecker
2010-04-08 19:48           ` Phil Muldoon
2010-04-08 20:41             ` Tom Tromey
2010-04-08 21:27               ` Phil Muldoon
2010-04-08 21:45                 ` Joel Brobecker
2010-04-08 22:21                   ` Pedro Alves
2010-04-08 23:26                     ` Joel Brobecker
2010-04-08 23:40                       ` Pedro Alves
2010-04-09 15:35                       ` Tom Tromey
2010-04-09 15:32                   ` Tom Tromey
2010-04-08 19:57         ` Tom Tromey
2010-04-09 10:11           ` Phil Muldoon
2010-04-07 21:19     ` Joel Brobecker
2010-06-11 17:41     ` Ulrich Weigand
2010-06-11 20:28       ` Phil Muldoon

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=83d3yn17mm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pmuldoon@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