binutils-gdb/gdb/python
Siva Chandra 7af389b892 [python] Fix gdb.Value.dynamic_type for reference values.
gdb.Value.dynamic_type is supposed to work for reference and pointer
values.  However, the value object in the function 'valpy_get_dynamic_type'
was being dereferenced using 'value_ind' irrespective of the value type
being TYPE_CODE_PTR or TYPE_CODE_REF.  This patch fixes that to use
'coerce_ref' for TYPE_CODE_REF values.

ChangeLog:

	* python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
	dereference TYPE_CODE_REF values.

	testsuite/
	* gdb.python/py-value.c: Improve test case.
	* gdb.python/py-value.exp: Add new test.
2014-04-07 14:18:44 -07:00
..
lib/gdb [Python] Make regexp collection printers work with typedefs as well. 2014-02-26 11:04:12 -08:00
py-arch.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-auto-load.c Extension Language API 2014-02-05 19:27:58 -08:00
py-block.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-bpevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-breakpoint.c Extension Language API 2014-02-05 19:27:58 -08:00
py-cmd.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-continueevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-event.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-event.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-events.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-evtregistry.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-evts.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-exitedevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-finishbreakpoint.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-frame.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-framefilter.c change minsym representation 2014-02-26 12:11:16 -07:00
py-function.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-gdb-readline.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-inferior.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-infthread.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-lazy-string.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-linetable.c Fix Python stack corruption 2014-02-09 18:47:40 +01:00
py-newobjfileevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-objfile.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-param.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-prettyprint.c Extension Language API 2014-02-05 19:27:58 -08:00
py-progspace.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-signalevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-stopevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-stopevent.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-symbol.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-symtab.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-threadevent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-type.c Add missing empty line after declarations in "if" block (py-type.c). 2014-01-15 16:32:05 +04:00
py-utils.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
py-value.c [python] Fix gdb.Value.dynamic_type for reference values. 2014-04-07 14:18:44 -07:00
python-config.py Add support for Python 3. 2012-12-12 16:47:30 +00:00
python-internal.h Extension Language API 2014-02-05 19:27:58 -08:00
python.c Extension Language API 2014-02-05 19:27:58 -08:00
python.h Extension Language API 2014-02-05 19:27:58 -08:00