From c32ce0dc6cc1e52aad728e915396c43a2c55850c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 7 Dec 2021 15:56:25 -0500 Subject: [PATCH] gdb: rename "maint agent" functions Functions agent_eval_command and agent_command are used to implement maintenance commands, rename them accordingly (with the maint_ prefix), as well as the agent_command_1 helper function. Change-Id: Iacf96d4a0a26298e8dd4648a0f38da649ea5ef61 --- gdb/ax-gdb.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index 67d4db33c9a..088f77f7062 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -2491,7 +2491,7 @@ agent_eval_command_one (const char *exp, int eval, CORE_ADDR pc) } static void -agent_command_1 (const char *exp, int eval) +maint_agent_command_1 (const char *exp, int eval) { /* We don't deal with overlay debugging at the moment. We need to think more carefully about this. If you copy this code into @@ -2529,9 +2529,9 @@ agent_command_1 (const char *exp, int eval) } static void -agent_command (const char *exp, int from_tty) +maint_agent_command (const char *exp, int from_tty) { - agent_command_1 (exp, 0); + maint_agent_command_1 (exp, 0); } /* Parse the given expression, compile it into an agent expression @@ -2539,9 +2539,9 @@ agent_command (const char *exp, int from_tty) expression. */ static void -agent_eval_command (const char *exp, int from_tty) +maint_agent_eval_command (const char *exp, int from_tty) { - agent_command_1 (exp, 1); + maint_agent_command_1 (exp, 1); } /* Parse the given expression, compile it into an agent expression @@ -2620,7 +2620,7 @@ void _initialize_ax_gdb (); void _initialize_ax_gdb () { - add_cmd ("agent", class_maintenance, agent_command, + add_cmd ("agent", class_maintenance, maint_agent_command, _("\ Translate an expression into remote agent bytecode for tracing.\n\ Usage: maint agent [-at LOCATION,] EXPRESSION\n\ @@ -2628,7 +2628,7 @@ If -at is given, generate remote agent bytecode for this location.\n\ If not, generate remote agent bytecode for current frame pc address."), &maintenancelist); - add_cmd ("agent-eval", class_maintenance, agent_eval_command, + add_cmd ("agent-eval", class_maintenance, maint_agent_eval_command, _("\ Translate an expression into remote agent bytecode for evaluation.\n\ Usage: maint agent-eval [-at LOCATION,] EXPRESSION\n\ -- 2.30.2