This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 883964a75e8c6531f167391354f1a4d83d203988
- From: sivachandra at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 3 Jun 2014 17:03:47 -0000
- Subject: gdb and binutils branch master updated. 883964a75e8c6531f167391354f1a4d83d203988
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 883964a75e8c6531f167391354f1a4d83d203988 (commit)
from 58992dc550f2012ca04f190cb77d2d829301cb72 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=883964a75e8c6531f167391354f1a4d83d203988
commit 883964a75e8c6531f167391354f1a4d83d203988
Author: Siva Chandra <sivachandra@chromium.org>
Date: Tue May 20 06:53:04 2014 -0700
Xmethod support in Python.
* python/py-xmethods.c: New file.
* python/py-objfile.c (objfile_object): New field 'xmethods'.
(objfpy_dealloc): XDECREF on the new xmethods field.
(objfpy_new, objfile_to_objfile_object): Initialize xmethods
field.
(objfpy_get_xmethods): New function.
(objfile_getset): New entry 'xmethods'.
* python/py-progspace.c (pspace_object): New field 'xmethods'.
(pspy_dealloc): XDECREF on the new xmethods field.
(pspy_new, pspace_to_pspace_object): Initialize xmethods
field.
(pspy_get_xmethods): New function.
(pspace_getset): New entry 'xmethods'.
* python/python-internal.h: Add declarations for new functions.
* python/python.c (_initialize_python): Invoke
gdbpy_initialize_xmethods.
* python/lib/gdb/__init__.py (xmethods): New
attribute.
* python/lib/gdb/xmethod.py: New file.
* python/lib/gdb/command/xmethods.py: New file.
testuite/
* gdb.python/py-xmethods.cc: New testcase to test xmethods.
* gdb.python/py-xmethods.exp: New tests to test xmethods.
* gdb.python/py-xmethods.py: Python script supporting the
new testcase and tests.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 23 +
gdb/Makefile.in | 6 +
gdb/data-directory/Makefile.in | 2 +
gdb/python/lib/gdb/__init__.py | 2 +
gdb/python/lib/gdb/command/xmethods.py | 272 +++++++++++++
gdb/python/lib/gdb/xmethod.py | 259 ++++++++++++
gdb/python/py-objfile.c | 31 ++
gdb/python/py-progspace.c | 31 ++
gdb/python/py-xmethods.c | 642 ++++++++++++++++++++++++++++++
gdb/python/python-internal.h | 22 +
gdb/python/python.c | 11 +-
gdb/testsuite/ChangeLog | 7 +
gdb/testsuite/gdb.python/py-xmethods.cc | 170 ++++++++
gdb/testsuite/gdb.python/py-xmethods.exp | 127 ++++++
gdb/testsuite/gdb.python/py-xmethods.py | 218 ++++++++++
15 files changed, 1821 insertions(+), 2 deletions(-)
create mode 100644 gdb/python/lib/gdb/command/xmethods.py
create mode 100644 gdb/python/lib/gdb/xmethod.py
create mode 100644 gdb/python/py-xmethods.c
create mode 100644 gdb/testsuite/gdb.python/py-xmethods.cc
create mode 100644 gdb/testsuite/gdb.python/py-xmethods.exp
create mode 100644 gdb/testsuite/gdb.python/py-xmethods.py
hooks/post-receive
--
gdb and binutils