mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 10:17:53 +08:00
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'.
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user