diff options
author | Siva Chandra <sivachandra@chromium.org> | 2013-12-27 12:20:59 -0800 |
---|---|---|
committer | Siva Chandra <sivachandra@chromium.org> | 2014-01-13 17:35:56 -0800 |
commit | b5b08fb4ffa53ec088f8ad865bee0fd6edb2906f (patch) | |
tree | 6235384f2a58a63987bc6d661390350c178730fa /gdb/ChangeLog | |
parent | 13aaf454542c1028a033ac836d7a0d47c63a7029 (diff) | |
download | gdb-b5b08fb4ffa53ec088f8ad865bee0fd6edb2906f.zip gdb-b5b08fb4ffa53ec088f8ad865bee0fd6edb2906f.tar.gz gdb-b5b08fb4ffa53ec088f8ad865bee0fd6edb2906f.tar.bz2 |
Use bitpos and type to lookup a gdb.Field object when its name is 'None'.
PR python/15464
PR python/16113
* valops.c (value_struct_elt_bitpos): New function
* py-type.c (convert_field): Set 'name' attribute of a gdb.Field
object to 'None' if the field name is an empty string ("").
* python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
attribute to look for a field when 'name' is 'None'.
(get_field_type): New function
testsuite/
* gdb.python/py-type.c: Enhance test case.
* gdb.python/py-value-cc.cc: Likewise
* gdb.python/py-type.exp: Add new tests.
* gdb.python/py-value-cc.exp: Likewise
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index afcce17..c4e1301 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +2014-01-13 Siva Chandra Reddy <sivachandra@google.com> + + PR python/15464 + PR python/16113 + * valops.c (value_struct_elt_bitpos): New function + * py-type.c (convert_field): Set 'name' attribute of a gdb.Field + object to 'None' if the field name is an empty string (""). + * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type' + attribute to look for a field when 'name' is 'None'. + (get_field_type): New function + 2014-01-13 Doug Evans <dje@google.com> PR symtab/16426 |