]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/Makefile.in
Add a new class gdb.Architecture which exposes GDB's
authorSiva Chandra Reddy <sivachandra@sourceware.org>
Wed, 23 Jan 2013 19:59:13 +0000 (19:59 +0000)
committerSiva Chandra Reddy <sivachandra@sourceware.org>
Wed, 23 Jan 2013 19:59:13 +0000 (19:59 +0000)
commitbea883fd928f283b41d10b02f2b92f28bfb634cf
tree5ce9b05bc33513798f72a321846ef1da66bb2586
parent796a7ff8234cfaa8ad1ab884c1c8dafe29b18d42
Add a new class gdb.Architecture which exposes GDB's
internal representation of architecture via GDB Python API.

* Makefile.in: Add entries corresponding to the new file
python/py-arch.c.
* NEWS (Python Scripting): Add entries for the new class
gdb.Architecture and the new method gdb.Frame.architecture.
* python/py-arch.c: Implement gdb.Architecture class.
* python/py-frame.c (frapy_arch): Implement the method
gdb.Frame.architecture().
(frame_object_methods): Add 'architecture' to the method table.
* python/python-internal.h: Add declarations of new utility
functions.
* python/python.c (_initialize_python): Initialize
gdb.Architecture class.

* doc/gdb.texinfo (Architectures In Python): New sub-sub-section
describing the gdb.Architecture class.
(Frames In Python): Add description about the new method
gdb.Frame.architecture().

* testsuite/gdb.python/frame.exp: Add a test for
gdb.Frame.architecture() method.
gdb/ChangeLog
gdb/Makefile.in
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/python/py-arch.c [new file with mode: 0644]
gdb/python/py-frame.c
gdb/python/python-internal.h
gdb/python/python.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-frame.exp