Re: [RFC - GDB Python API] New gdb.Architecture class

Tom Tromey
2013-01-23T15:35:46Z

>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:

Siva> 2013-01-22 Siva Chandra Reddy <sivachandra@google.com>
Siva> Add a new class gdb.Architecture which exposes GDB's
Siva> internal representation of architecture via GDB Python API.

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

Siva> doc/

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

Siva> testsuite/

Siva> * gdb.python/frame.exp: Add a test for Frame.architecture()
Siva> method.

The code bits are ok.
It still needs a doc review though.

Tom