diff options
author | Siva Chandra <sivachandra@chromium.org> | 2014-03-21 06:42:50 -0700 |
---|---|---|
committer | Siva Chandra <sivachandra@chromium.org> | 2014-04-07 14:18:44 -0700 |
commit | 7af389b892404edc76e1a60c59b354b785378fa5 (patch) | |
tree | d54320b4ecb69f5570d4887f3cc3277c6f7ad6c3 /bfd/cpu-aarch64.c | |
parent | 5e703181143d5eb3724115e5cbb59a6b294e6222 (diff) | |
download | gdb-7af389b892404edc76e1a60c59b354b785378fa5.zip gdb-7af389b892404edc76e1a60c59b354b785378fa5.tar.gz gdb-7af389b892404edc76e1a60c59b354b785378fa5.tar.bz2 |
[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.
Diffstat (limited to 'bfd/cpu-aarch64.c')
0 files changed, 0 insertions, 0 deletions