[python] [patch] PR python/12656 (API for special blocks)

Eli Zaretskii eliz@gnu.org
Mon Oct 17 15:07:00 GMT 2011


> From: Phil Muldoon <pmuldoon@redhat.com>
> Cc: tromey@redhat.com, eli@gnu.org, gdb-patches@sourceware.org
> Reply-to: pmuldoon@redhat.com
> Date: Mon, 17 Oct 2011 12:57:17 +0100
> 
> >> +@defvar Block.is_global ()
> >> +@code{True} if the @code{gdb.Block} object is the global block
> >> +for the inferior, @code{False} if not.  This attribute is not
> >> +writable.
> >
> > If this is an attribute, why do you use "()" on the @defvar line?
> 
> They used to be methods in a previous posting, I just forgot to remove
> the "()"'s when I converted them to attributes.  Fixed locally.
> 
> > Also, what do you mean by "the global block for the inferior"? why
> > "the" global block?  There could be more than one such block, right?
> 
> Oops, fixed and for static too.
> 
> > And the same goes for the static attribute.
> 
> Is this ok, or do you want me to re-post the patch?

Go ahead and commit, we can always fix later if needed.

Thanks.



More information about the Gdb-patches mailing list