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]

[RFC] New method gdb.Frame.arch_name which return's the name of frame's architecture


Hello,

Attached is a patch which adds a new method 'arch_name' to the class
gdb.Frame. This new method returns the name of the frame's
architecture as a string value.

Phil Muldoon (copied in this mail) asked sometime back whether I
intend to expose frame's architecture as an object by itself. All I
want for now is a way to get the name  of the frame's architecture.

Changelog:
2013-01-11  Siva Chandra Reddy  <sivachandra@google.com>

        New method gdb.Frame.arch_name() which returns the name of
        frame's architecture.

        * NEWS: Add entry about the new method.
        * python/py-frame.c (frapy_arch_name): Implementation of
        gdb.Frame.arch_name.
        (frame_object_methods): Add method table entry for the new
        method.

doc/

        * gdb.texinfo: Add description of the new method.

testsuite/

        * gdb.python/py-frame.exp: Add a test to test the new method.

Thanks,
Siva Chandra

Attachment: frame_arch_name_patch.txt
Description: Text document


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