Hi, This is a follow up to this thread: https://sourceware.org/ml/gdb/2013-11/msg00101.html Part of Doug's response there seemed to indicate that calling overloaded operators to perform valid Python operations has not yet been implemented. The attached patch adds this "feature". I could not yet think of a reason as to why adding this could be bad (as in, leading to ambiguity or something similar). ChangeLog 2013-12-02 Siva Chandra Reddy Call overloaded operators to perform valid Python operations on struct/class values. * 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. * gdb.python/py-value-cc.exp: Add new tests.