This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC/Patch v4] Call overloaded operators to perform valid Python operations on struct/class values.


On Sat, Jan 25, 2014 at 10:45 AM, Doug Evans <dje@google.com> wrote:
> IWBN if the docs listed exactly which operations are supported.

I have added it now in the attached patch. Eli should probably take
another look.

> [I realize this patch relies on the user-defined method patch, so it
> can't go in just yet.]

Are you referring to the debug methods patch? If yes, I do think this
patch relies on that patch. This is an independent feature which would
make writing debug methods simpler (IMO).

2014-02-02  Siva Chandra Reddy  <sivachandra@google.com>

        Call overloaded operators to perform valid Python operations on
        struct/class values.
        * NEWS (Python Scripting): Add entry for this new feature.
        * python/py-value.c (valpy_binop): Call value_x_binop for struct
        and class values.

        testsuite/
        * gdb.python/py-value-cc.cc: Improve test case to enable testing
        operations on gdb.Value objects.
        * gdb.python/py-value-cc.exp: Add new test to test operations on
        gdb.Value objects.

        doc/
        * gdb.texinfo (Values From Inferior): Add description about
        performing valid Python operations on gdb.Value objects.

Attachment: python_op_patch_v4.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]