diff options
Diffstat (limited to 'gdb/mi/mi-main.c')
-rw-r--r-- | gdb/mi/mi-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index d875d80..d3ea139 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -2206,7 +2206,7 @@ mi_execute_cli_command (const char *cmd, int args_p, const char *args) /* FIXME: gdb_???? */ fprintf_unfiltered (gdb_stdout, "cli=%s run=%s\n", cmd, run.c_str ()); - execute_command (&run[0], 0 /* from_tty */ ); + execute_command (run.c_str (), 0 /* from_tty */ ); } } @@ -2220,7 +2220,7 @@ mi_execute_async_cli_command (const char *cli_command, char **argv, int argc) if (mi_async_p ()) run += "&"; - execute_command (&run[0], 0 /* from_tty */ ); + execute_command (run.c_str (), 0 /* from_tty */ ); } void |