-/* Copyright (C) 2012-2021 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2022 Free Software Foundation, Inc.
This file is part of GDB.
show_can_use_agent (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
- fprintf_filtered (file,
- _("Debugger's willingness to use agent in inferior "
- "as a helper is %s.\n"), value);
+ gdb_printf (file,
+ _("Debugger's willingness to use agent in inferior "
+ "as a helper is %s.\n"), value);
}
static void
void
_initialize_agent ()
{
- gdb::observers::new_objfile.attach (agent_new_objfile);
+ gdb::observers::new_objfile.attach (agent_new_objfile,
+ "agent");
add_setshow_enum_cmd ("agent", class_run,
can_use_agent_enum,