[RFC/Patch v4] Call overloaded operators to perform valid Python operations on struct/class values.
Eli Zaretskii
eliz@gnu.org
Sun Feb 2 21:03:00 GMT 2014
> Date: Sun, 02 Feb 2014 22:59:01 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: dje@google.com, gdb-patches@sourceware.org, tromey@redhat.com
>
> > Date: Sun, 2 Feb 2014 12:06:31 -0800
> > From: Siva Chandra <sivachandra@google.com>
> > Cc: gdb-patches <gdb-patches@sourceware.org>, Tom Tromey <tromey@redhat.com>
> >
> > +operator. In general, overloaded operators are invoked for the
> > +following operators: @code{+} (binary addition), @code{-} (binary
> ^^^^^^^^^
> I'd suggest "operations" here.
>
> > +subtraction), @code{*} (multiplication), @code{/}, @code{%}, @code{<<},
> > +@code{>>}, @code{|}, @code{&}, @code{^}.
>
> OK with those changes.
Another gotcha that somehow got deleted from the mail I prepared:
> +For example, if @code{val1}and @code{val2} are @code{gdb.Value} objects
^^
Missing space.
More information about the Gdb-patches
mailing list