aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-gdb.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-12-07 15:56:25 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-12-07 15:56:25 -0500
commitc32ce0dc6cc1e52aad728e915396c43a2c55850c (patch)
tree9df839969bc0ce56fc429065959460490b3ac96d /gdb/ax-gdb.c
parentcd0f67f3630b3a938a74d2045f3726c09395adfc (diff)
downloadbinutils-c32ce0dc6cc1e52aad728e915396c43a2c55850c.zip
binutils-c32ce0dc6cc1e52aad728e915396c43a2c55850c.tar.gz
binutils-c32ce0dc6cc1e52aad728e915396c43a2c55850c.tar.bz2
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
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r--gdb/ax-gdb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 67d4db3..088f77f7 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\