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]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]