aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@sourceware.org>2013-01-23 19:59:13 +0000
committerSiva Chandra Reddy <sivachandra@sourceware.org>2013-01-23 19:59:13 +0000
commitbea883fd928f283b41d10b02f2b92f28bfb634cf (patch)
tree5ce9b05bc33513798f72a321846ef1da66bb2586 /gdb/python/python.c
parent796a7ff8234cfaa8ad1ab884c1c8dafe29b18d42 (diff)
downloadbinutils-bea883fd928f283b41d10b02f2b92f28bfb634cf.zip
binutils-bea883fd928f283b41d10b02f2b92f28bfb634cf.tar.gz
binutils-bea883fd928f283b41d10b02f2b92f28bfb634cf.tar.bz2
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.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index b0f71a2..53ddee9 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1620,6 +1620,7 @@ message == an error message without a stack will be printed."),
gdbpy_initialize_exited_event ();
gdbpy_initialize_thread_event ();
gdbpy_initialize_new_objfile_event () ;
+ gdbpy_initialize_arch ();
observer_attach_before_prompt (before_prompt_hook);