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]

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


On Sun, Dec 15, 2013 at 11:48 PM, Doug Evans <xdje42@gmail.com> wrote:
> For myself, I'm just going slow on this one.  E.g., is there another
> way to provide this?
> E.g., some kind of facility that uses gdb's language parsers but let's
> one pass in gdb.Value objects from Python?
> It sounds doable, but I haven't thought about it very hard (it might
> not even make sense, or it may require more effort).
> Its drawback to the current proposal is that it would be a bit more
> verbose, but it has to potential of handling a lot more cases.

I am not sure I fully understand this alternative.  My patch adds the
ability to use valid Python operators on gdb.Value objects in Python
code.  Operators which have different semantics in Python (like '[]',
',' etc.), and operators which do not exist in Python (like '->')
cannot be facilitated.  But, my patch adds the ability to use all
other operators which are valid (as far as my understanding today
stands at) in Python.


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