From 9b2eba3dcc6b41f17180e1aee29ed133f942c733 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 5 Apr 2017 19:21:36 +0100 Subject: -Wwrite-strings: execute_command calls with string literals This is ugly, but it's just making the uglyness explicit. All these places would better be calling some API function directly instead of going through execute_command & friends... gdb/ChangeLog: 2017-04-05 Pedro Alves * event-top.c (command_line_handler): Add cast to execute_command call. * record-btrace.c (cmd_record_btrace_bts_start) (cmd_record_btrace_pt_start, cmd_record_btrace_start) (cmd_record_btrace_start): Add cast to execute_command call. * record-full.c (record_full_goto_insn): * record.c (record_start, record_stop): Add cast to execute_command_to_string calls. (cmd_record_start): Add cast to execute_command calls. --- gdb/record-btrace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/record-btrace.c') diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index af025e2a1ca..61fba1e46f3 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -2897,7 +2897,7 @@ cmd_record_btrace_bts_start (char *args, int from_tty) TRY { - execute_command ("target record-btrace", from_tty); + execute_command ((char *) "target record-btrace", from_tty); } CATCH (exception, RETURN_MASK_ALL) { @@ -2919,7 +2919,7 @@ cmd_record_btrace_pt_start (char *args, int from_tty) TRY { - execute_command ("target record-btrace", from_tty); + execute_command ((char *) "target record-btrace", from_tty); } CATCH (exception, RETURN_MASK_ALL) { @@ -2941,7 +2941,7 @@ cmd_record_btrace_start (char *args, int from_tty) TRY { - execute_command ("target record-btrace", from_tty); + execute_command ((char *) "target record-btrace", from_tty); } CATCH (exception, RETURN_MASK_ALL) { @@ -2949,7 +2949,7 @@ cmd_record_btrace_start (char *args, int from_tty) TRY { - execute_command ("target record-btrace", from_tty); + execute_command ((char *) "target record-btrace", from_tty); } CATCH (exception, RETURN_MASK_ALL) { -- cgit v1.2.1