diff options
author | Paul Koning <pkoning@equallogic.com> | 2011-09-28 20:04:52 +0000 |
---|---|---|
committer | Paul Koning <pkoning@equallogic.com> | 2011-09-28 20:04:52 +0000 |
commit | a73bb89264f459f0a273b46f32ce911fa82ef92d (patch) | |
tree | 95713718db2032e0cbacbe6642854d9685161957 /gdb/python/python-internal.h | |
parent | 514c97d3e0e09f75366b973f214441d8cd019c8f (diff) | |
download | gdb-a73bb89264f459f0a273b46f32ce911fa82ef92d.zip gdb-a73bb89264f459f0a273b46f32ce911fa82ef92d.tar.gz gdb-a73bb89264f459f0a273b46f32ce911fa82ef92d.tar.bz2 |
* python/py-type.c (make_fielditem, typy_field_names, typy_items)
(typy_length, typy_get, typy_has_key, typy_make_iter)
(typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
(typy_iterator_iter, typy_iterator_iternext)
(typy_iterator_dealloc): New functions to implement standard
Python mapping methods on gdb.Type object.
(gdb.TypeIterator): New Python type.
* python/python-internal.h (gdbpy_iter_kind): New enum.
* doc/gdb.texinfo (gdb.Type): Document field access by dictionary
key syntax.
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r-- | gdb/python/python-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 11f1efd..bff40b5 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -104,6 +104,8 @@ typedef unsigned long gdb_py_ulongest; #include "exceptions.h" +enum gdbpy_iter_kind { iter_keys, iter_values, iter_items }; + struct block; struct value; struct language_defn; |