This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This part adds the debug method support to the Python API. 2014-04-01 Siva Chandra Reddy <sivachandra@google.com> * python/py-debugmethods.c: New file. * python/py-objfile.c (objfile_object): New field 'debug_methods'. (objfpy_dealloc): XDECREF on the new debug_methods field. (objfpy_new, objfile_to_objfile_object): Initialize debug_methods field. (objfpy_get_debug_methods): New function. (objfile_getset): New entry 'debug_methods'. * python/py-progspace.c (pspace_object): New field 'debug_methods'. (pspy_dealloc): XDECREF on the new debug_methods field. (pspy_new, pspace_to_pspace_object): Initialize debug_methods field. (pspy_get_debug_methods): New function. (pspace_getset): New entry 'debug_methods'. * python/python-internal.h: Add declarations for new functions. * python/python.c (_initialize_python): Invoke gdbpy_initialize_debug_methods. * python/lib/gdb/__init__.py (debug_methods): New attribute. * python/lib/gdb/debug_method.py: New file. * python/lib/gdb/command/debug_methods.py: New file. testuite/ * gdb.python/py-debugmethods.cc: New testcase to test debug methods. * gdb.python/py-debugmethods.exp: New tests to test debug methods. * gdb.python/py-debugmethods.py: Python script supporting the new testcase and tests.
Attachment:
dm_python_support_v12.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |