This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC 19/32] convert to_detach


Looks fine to me.

On 01/13/2014 07:12 PM, Tom Tromey wrote:
>  static void
> +default_rcmd (struct target_ops *self, char *command, struct ui_file *output)
> +{
> +  error (_("\"monitor\" command not supported by this target."));
> +}
> +
> +static void
>  do_monitor_command (char *cmd,
>  		 int from_tty)
>  {
> -  if ((current_target.to_rcmd
> -       == (void (*) (struct target_ops *, char *, struct ui_file *)) tcomplain)
> -      || (current_target.to_rcmd == debug_to_rcmd
> -	  && (debug_target.to_rcmd
> -	      == (void (*) (struct target_ops *,
> -			    char *, struct ui_file *)) tcomplain)))
> -    error (_("\"monitor\" command not supported by this target."));
>    target_rcmd (cmd, gdb_stdtarg);
>  }

Hurray!

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]