From 2ce1cdbf84ce883b992bc8ffec3d29b4da229b72 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 29 Apr 2015 13:24:21 -0700 Subject: PR python/18285 gdb/ChangeLog: PR python/18285 * NEWS: Document new gdb.XMethodWorker.get_result_type method. * eval.c (evaluate_subexp_standard) : Handle EVAL_AVOID_SIDE_EFFECTS for xmethods. * extension-priv.h (struct extension_language_ops) : 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) : Document. (Writing an Xmethod): Add get_result_type to example. --- gdb/NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index d463b52..651401d 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -2,7 +2,6 @@ (Organized release by release) *** Changes since GDB 7.9 -======= * GDB now honors the content of the file /proc/PID/coredump_filter (PID is the process ID) on GNU/Linux systems. This file can be used @@ -54,6 +53,7 @@ ** You can now write frame unwinders in Python. ** gdb.Type objects have a new method "optimized_out", returning optimized out gdb.Value instance of this type. + ** Xmethods can now specify a result type. * New commands -- cgit v1.1