diff options
author | Tom Tromey <tromey@redhat.com> | 2012-02-17 19:24:25 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-02-17 19:24:25 +0000 |
commit | db362f800c98416e9654e51c60e22ef96d0d341c (patch) | |
tree | 0459bb3f7df1608a7daccb66ae190eb2c60a27d4 /gdb/python/python-internal.h | |
parent | 7fff0957621ce0850a0a67ff7abcff29c7670427 (diff) | |
download | gdb-db362f800c98416e9654e51c60e22ef96d0d341c.tar.gz |
PR python/12070:
* python/py-event.c (event_object_getset): New global.
(event_object_type): Reference it.
* python/py-type.c (field_object_getset): New global.
(field_object_type): Reference it.
* python/python-internal.h (gdb_py_generic_dict): Declare.
* python/py-utils.c (gdb_py_generic_dict): New function.
testsuite/gdb
* gdb.python/py-events.py (exit_handler): Add test for 'dir'.
* gdb.python/py-events.exp: Check 'dir' output.
* gdb.python/py-type.exp (test_fields): Add test for 'dir'.
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 1d6247d0671..bae61c28da8 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -342,4 +342,6 @@ PyObject *gdb_py_object_from_longest (LONGEST l); PyObject *gdb_py_object_from_ulongest (ULONGEST l); int gdb_py_int_as_long (PyObject *, long *); +PyObject *gdb_py_generic_dict (PyObject *self, void *closure); + #endif /* GDB_PYTHON_INTERNAL_H */ |