can_use_agent = can_use_agent_off;
}
-#include "observer.h"
+#include "observable.h"
#include "objfiles.h"
static void
void
_initialize_agent (void)
{
- observer_attach_new_objfile (agent_new_objfile);
+ gdb::observers::new_objfile.attach (agent_new_objfile);
add_setshow_enum_cmd ("agent", class_run,
can_use_agent_enum,