From a73bb89264f459f0a273b46f32ce911fa82ef92d Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Wed, 28 Sep 2011 20:04:52 +0000 Subject: * 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. --- gdb/python/python-internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/python/python-internal.h') 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; -- cgit v1.1