diff options
author | Tom Tromey <tom@tromey.com> | 2019-05-10 16:09:35 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-05-25 19:00:02 -0600 |
commit | 9158e49a70386c3e883ad429d93fe31aa59c0918 (patch) | |
tree | e020360e60c608bfabdd498bb0e60ae7811a199a /gdb/mi/mi-interp.c | |
parent | fb7cd8ccfedbfe349c84ce0393da39b8b7ee9b94 (diff) | |
download | gdb-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.c | 3 |
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; |