diff options
author | 2015-04-29 13:24:21 -0700 | |
---|---|---|
committer | 2015-04-29 13:24:21 -0700 | |
commit | 2ce1cdbf84ce883b992bc8ffec3d29b4da229b72 (patch) | |
tree | 4143b5da94595cdef5199d0ca8afd6ec14bc30e6 /gdb/value.h | |
parent | Fix an internal error in GAS when assembling a bogus piece of source code. (diff) | |
download | binutils-gdb-2ce1cdbf84ce883b992bc8ffec3d29b4da229b72.tar.gz binutils-gdb-2ce1cdbf84ce883b992bc8ffec3d29b4da229b72.tar.bz2 binutils-gdb-2ce1cdbf84ce883b992bc8ffec3d29b4da229b72.zip |
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.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/value.h b/gdb/value.h index 21baa32442b..25107a4b12c 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -1080,7 +1080,10 @@ char *value_internal_function_name (struct value *); extern struct value *value_of_xmethod (struct xmethod_worker *); -struct value *call_xmethod (struct value *function, - int argc, struct value **argv); +extern struct type *result_type_of_xmethod (struct value *method, + int argc, struct value **argv); + +extern struct value *call_xmethod (struct value *method, + int argc, struct value **argv); #endif /* !defined (VALUE_H) */ |