aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-04-05 19:21:36 +0100
committerPedro Alves <palves@redhat.com>2017-04-05 19:21:36 +0100
commit9b2eba3dcc6b41f17180e1aee29ed133f942c733 (patch)
treeda51db0080cdfd9c97da832bbe6f6b71cd665463 /gdb/event-top.c
parent2adadf517063fb1c3b9240bf99ad339968c12f15 (diff)
downloadgdb-9b2eba3dcc6b41f17180e1aee29ed133f942c733.zip
gdb-9b2eba3dcc6b41f17180e1aee29ed133f942c733.tar.gz
gdb-9b2eba3dcc6b41f17180e1aee29ed133f942c733.tar.bz2
-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 <palves@redhat.com> * 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.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 5d8d077..dd2770a 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -766,7 +766,7 @@ command_line_handler (char *rl)
hung up but GDB is still alive. In such a case, we just quit
gdb killing the inferior program too. */
printf_unfiltered ("quit\n");
- execute_command ("quit", 1);
+ execute_command ((char *) "quit", 1);
}
else if (cmd == NULL)
{