This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 7af389b892404edc76e1a60c59b354b785378fa5
- From: sivachandra at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 7 Apr 2014 21:22:07 -0000
- Subject: gdb and binutils branch master updated. 7af389b892404edc76e1a60c59b354b785378fa5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 7af389b892404edc76e1a60c59b354b785378fa5 (commit)
from 5e703181143d5eb3724115e5cbb59a6b294e6222 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7af389b892404edc76e1a60c59b354b785378fa5
commit 7af389b892404edc76e1a60c59b354b785378fa5
Author: Siva Chandra <sivachandra@chromium.org>
Date: Fri Mar 21 06:42:50 2014 -0700
[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.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++++
gdb/python/py-value.c | 5 ++++-
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.python/py-value.c | 2 ++
gdb/testsuite/gdb.python/py-value.exp | 2 ++
5 files changed, 18 insertions(+), 1 deletions(-)
hooks/post-receive
--
gdb and binutils