Constify execute_command
[deliverable/binutils-gdb.git] / gdb / record.c
index 5ecdcfc5f98834dc2e0742e1c26833a5eb91b419..b53c0bcd1f57f9f37a97d25c55e44825f5cd05be 100644 (file)
@@ -99,25 +99,25 @@ record_start (const char *method, const char *format, int from_tty)
   if (method == NULL)
     {
       if (format == NULL)
-       execute_command_to_string ((char *) "record", from_tty);
+       execute_command_to_string ("record", from_tty);
       else
        error (_("Invalid format."));
     }
   else if (strcmp (method, "full") == 0)
     {
       if (format == NULL)
-       execute_command_to_string ((char *) "record full", from_tty);
+       execute_command_to_string ("record full", from_tty);
       else
        error (_("Invalid format."));
     }
   else if (strcmp (method, "btrace") == 0)
     {
       if (format == NULL)
-       execute_command_to_string ((char *) "record btrace", from_tty);
+       execute_command_to_string ("record btrace", from_tty);
       else if (strcmp (format, "bts") == 0)
-       execute_command_to_string ((char *) "record btrace bts", from_tty);
+       execute_command_to_string ("record btrace bts", from_tty);
       else if (strcmp (format, "pt") == 0)
-       execute_command_to_string ((char *) "record btrace pt", from_tty);
+       execute_command_to_string ("record btrace pt", from_tty);
       else
        error (_("Invalid format."));
     }
@@ -130,7 +130,7 @@ record_start (const char *method, const char *format, int from_tty)
 void
 record_stop (int from_tty)
 {
-  execute_command_to_string ((char *) "record stop", from_tty);
+  execute_command_to_string ("record stop", from_tty);
 }
 
 /* See record.h.  */
@@ -234,7 +234,8 @@ record_kill (struct target_ops *t)
 /* See record.h.  */
 
 int
-record_check_stopped_by_breakpoint (struct address_space *aspace, CORE_ADDR pc,
+record_check_stopped_by_breakpoint (const address_space *aspace,
+                                   CORE_ADDR pc,
                                    enum target_stop_reason *reason)
 {
   if (breakpoint_inserted_here_p (aspace, pc))
@@ -265,7 +266,7 @@ show_record_debug (struct ui_file *file, int from_tty,
 static void
 cmd_record_start (const char *args, int from_tty)
 {
-  execute_command ((char *) "target record-full", from_tty);
+  execute_command ("target record-full", from_tty);
 }
 
 /* Truncate the record log from the present point
@@ -758,7 +759,7 @@ validate_history_size (unsigned int *command_var, unsigned int *setting)
    [0..UINT_MAX].  See command_size_to_target_size.  */
 
 static void
-set_record_insn_history_size (char *args, int from_tty,
+set_record_insn_history_size (const char *args, int from_tty,
                              struct cmd_list_element *c)
 {
   validate_history_size (&record_insn_history_size_setshow_var,
@@ -770,7 +771,7 @@ set_record_insn_history_size (char *args, int from_tty,
    [0..UINT_MAX].  See command_size_to_target_size.  */
 
 static void
-set_record_call_history_size (char *args, int from_tty,
+set_record_call_history_size (const char *args, int from_tty,
                              struct cmd_list_element *c)
 {
   validate_history_size (&record_call_history_size_setshow_var,
This page took 0.025228 seconds and 4 git commands to generate.