In Python, I have a a variable var of type gdb.Value that corresponds to a C++ struct.
The struct has a method void foo().
I can evaluate this expression var['foo']. But var['foo']\() will complain saying
RuntimeError: Value is not callable (not TYPE_CODE_FUNC)
I believe the value type will be gdb.TYPE_CODE_METHOD (not sure, but var['foo'].type.code returns 16) in my case.
So I guess the question is:
Does python API support calls to class methods, and if not, is there a workaround?
Thanks!