aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-interp.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-05-10 16:09:35 -0600
committerTom Tromey <tom@tromey.com>2023-05-25 19:00:02 -0600
commit9158e49a70386c3e883ad429d93fe31aa59c0918 (patch)
treee020360e60c608bfabdd498bb0e60ae7811a199a /gdb/mi/mi-interp.c
parentfb7cd8ccfedbfe349c84ce0393da39b8b7ee9b94 (diff)
downloadgdb-9158e49a70386c3e883ad429d93fe31aa59c0918.zip
gdb-9158e49a70386c3e883ad429d93fe31aa59c0918.tar.gz
gdb-9158e49a70386c3e883ad429d93fe31aa59c0918.tar.bz2
Make MI commands const-correct
I've had this patch for a while now and figured I'd update it and send it. It changes MI commands to use a "const char * const" for their argv parameter. Regression tested on x86-64 Fedora 36. Acked-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/mi/mi-interp.c')
-rw-r--r--gdb/mi/mi-interp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index ad33a21..47aeabd 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -205,7 +205,8 @@ mi_interp::exec (const char *command)
}
void
-mi_cmd_interpreter_exec (const char *command, char **argv, int argc)
+mi_cmd_interpreter_exec (const char *command, const char *const *argv,
+ int argc)
{
struct interp *interp_to_use;
int i;