diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/agent.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | gdb-users/simark/clang-format.zip gdb-users/simark/clang-format.tar.gz gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/agent.c')
-rw-r--r-- | gdb/agent.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/agent.c b/gdb/agent.c index e2ad3b5..b1c46a0 100644 --- a/gdb/agent.c +++ b/gdb/agent.c @@ -27,8 +27,7 @@ static const char can_use_agent_on[] = "on"; static const char can_use_agent_off[] = "off"; -static const char * const can_use_agent_enum[] = -{ +static const char *const can_use_agent_enum[] = { can_use_agent_on, can_use_agent_off, NULL, @@ -41,8 +40,9 @@ show_can_use_agent (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { gdb_printf (file, - _("Debugger's willingness to use agent in inferior " - "as a helper is %s.\n"), value); + _ ("Debugger's willingness to use agent in inferior " + "as a helper is %s.\n"), + value); } static void @@ -75,23 +75,23 @@ agent_new_objfile (struct objfile *objfile) } void _initialize_agent (); + void _initialize_agent () { - gdb::observers::new_objfile.attach (agent_new_objfile, - "agent"); - - add_setshow_enum_cmd ("agent", class_run, - can_use_agent_enum, - &can_use_agent, _("\ -Set debugger's willingness to use agent as a helper."), _("\ -Show debugger's willingness to use agent as a helper."), _("\ + gdb::observers::new_objfile.attach (agent_new_objfile, "agent"); + + add_setshow_enum_cmd ("agent", class_run, can_use_agent_enum, &can_use_agent, + _ ("\ +Set debugger's willingness to use agent as a helper."), + _ ("\ +Show debugger's willingness to use agent as a helper."), + _ ("\ If on, GDB will delegate some of the debugging operations to the\n\ agent, if the target supports it. This will speed up those\n\ operations that are supported by the agent.\n\ If off, GDB will not use agent, even if such is supported by the\n\ target."), - set_can_use_agent, - show_can_use_agent, - &setlist, &showlist); + set_can_use_agent, show_can_use_agent, &setlist, + &showlist); } |