Doug Evans
2ce1cdbf84
PR python/18285
gdb/ChangeLog:
PR python/18285
* NEWS: Document new gdb.XMethodWorker.get_result_type method.
* eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
EVAL_AVOID_SIDE_EFFECTS for xmethods.
* extension-priv.h (struct extension_language_ops)
<get_xmethod_result_type>: New member.
* extension.c (get_xmethod_result_type): New function.
* extension.h (get_xmethod_result_type): Declare.
* python/py-xmethods.c (get_result_type_method_name): New static
global.
(py_get_result_type_method_name): Ditto.
(gdbpy_get_xmethod_result_type): New function.
(gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
* python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
* python/python.c (python_extension_ops): Add
gdbpy_get_xmethod_result_type.
* python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
* valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
xmethods.
(value_x_unop): Ditto.
* value.c (result_type_of_xmethod): New function.
* value.h (result_type_of_xmethod): Declare.
gdb/testsuite/ChangeLog:
* gdb.python/py-xmethods.exp: Add ptype tests.
* gdb.python/py-xmethods.py (E_method_char_worker): Add
get_result_type method.
gdb/doc/ChangeLog:
* python.texi (Xmethod API) <gdb.XMethodWorker.get_result_type>:
Document.
(Writing an Xmethod): Add get_result_type to example.
2015-04-29 13:24:21 -07:00
..
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-28 21:53:54 -07:00
2015-04-28 21:53:54 -07:00
2015-04-28 21:53:54 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-08 18:27:10 -04:00
2015-04-08 18:27:10 -04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-12 11:02:46 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-02-11 14:53:14 +01:00
2015-04-15 11:54:33 -04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-26 08:41:37 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-15 11:54:33 -04:00
2015-04-28 11:15:47 +02:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-28 22:14:23 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-28 22:14:23 -07:00
2015-04-28 22:14:23 -07:00
2015-04-28 22:14:23 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-12 17:10:06 +00:00
2015-01-31 12:01:13 -08:00
2015-01-31 12:01:13 -08:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-09 11:04:19 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-28 17:41:09 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-01 11:49:12 -07:00
2015-04-01 11:49:12 -07:00
2015-04-15 11:54:33 -04:00
2015-04-01 11:49:12 -07:00
2015-04-01 11:49:12 -07:00
2015-04-01 11:49:12 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-29 13:24:21 -07:00
2015-04-29 13:24:21 -07:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00