gdb and binutils branch value_dynamic_type created. ff519ed3b11d2781e21b668d36674d672eb5ad54

sivachandra@sourceware.org sivachandra@sourceware.org
Mon Apr 7 21:10:00 GMT 2014


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, value_dynamic_type has been created
        at  ff519ed3b11d2781e21b668d36674d672eb5ad54 (commit)

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ff519ed3b11d2781e21b668d36674d672eb5ad54

commit ff519ed3b11d2781e21b668d36674d672eb5ad54
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.

-----------------------------------------------------------------------


hooks/post-receive
-- 
gdb and binutils



More information about the Src-cvs mailing list