22#include "gdbsupport/agent.h"
44 _(
"Debugger's willingness to use agent in inferior "
45 "as a helper is %s.\n"),
value);
52 if (can_use && !agent_loaded_p ())
57 if (agent_look_up_symbols (
objfile) == 0)
68 if (agent_loaded_p ())
74 agent_look_up_symbols (
objfile);
87Set debugger's willingness to use agent as a helper."), _(
"\
88Show debugger's willingness to use agent as a helper."), _(
"\
89If on, GDB will delegate some of the debugging operations to the\n\
90agent, if the target supports it. This will speed up those\n\
91operations that are supported by the agent.\n\
92If off, GDB will not use agent, even if such is supported by the\n\
static const char can_use_agent_off[]
static const char *const can_use_agent_enum[]
static void show_can_use_agent(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void set_can_use_agent(const char *args, int from_tty, struct cmd_list_element *c)
static const char can_use_agent_on[]
static const char * can_use_agent
static void agent_new_objfile(struct objfile *objfile)
struct cmd_list_element * showlist
struct cmd_list_element * setlist
set_show_commands add_setshow_enum_cmd(const char *name, enum command_class theclass, const char *const *enumlist, const char **var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
observable< struct objfile * > new_objfile
struct program_space * current_program_space
objfiles_range objfiles()
bool target_use_agent(bool use)
void gdb_printf(struct ui_file *stream, const char *format,...)