X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fpython%2Fpy-inferior.c;h=d199aaa1f8c0598de3abe5bd5a5d482bf1c9eb8a;hb=76727919ceb590f03ff0f6db08b7ceab5b7aeaff;hp=564aa79f17137679ae6a58ed8ada2a4fd3dc9c45;hpb=194ed4130dadb7dd1668f6af87405bdcd8041199;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 564aa79f17..d199aaa1f8 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -22,7 +22,7 @@ #include "gdbthread.h" #include "inferior.h" #include "objfiles.h" -#include "observer.h" +#include "observable.h" #include "python-internal.h" #include "arch-utils.h" #include "language.h" @@ -926,18 +926,18 @@ gdbpy_initialize_inferior (void) infpy_inf_data_key = register_inferior_data_with_cleanup (NULL, py_free_inferior); - observer_attach_new_thread (add_thread_object); - observer_attach_thread_exit (delete_thread_object); - observer_attach_normal_stop (python_on_normal_stop); - observer_attach_target_resumed (python_on_resume); - observer_attach_inferior_call_pre (python_on_inferior_call_pre); - observer_attach_inferior_call_post (python_on_inferior_call_post); - observer_attach_memory_changed (python_on_memory_change); - observer_attach_register_changed (python_on_register_change); - observer_attach_inferior_exit (python_inferior_exit); - observer_attach_new_objfile (python_new_objfile); - observer_attach_inferior_added (python_new_inferior); - observer_attach_inferior_removed (python_inferior_deleted); + gdb::observers::new_thread.attach (add_thread_object); + gdb::observers::thread_exit.attach (delete_thread_object); + gdb::observers::normal_stop.attach (python_on_normal_stop); + gdb::observers::target_resumed.attach (python_on_resume); + gdb::observers::inferior_call_pre.attach (python_on_inferior_call_pre); + gdb::observers::inferior_call_post.attach (python_on_inferior_call_post); + gdb::observers::memory_changed.attach (python_on_memory_change); + gdb::observers::register_changed.attach (python_on_register_change); + gdb::observers::inferior_exit.attach (python_inferior_exit); + gdb::observers::new_objfile.attach (python_new_objfile); + gdb::observers::inferior_added.attach (python_new_inferior); + gdb::observers::inferior_removed.attach (python_inferior_deleted); membuf_object_type.tp_new = PyType_GenericNew; if (PyType_Ready (&membuf_object_type) < 0)