This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 19/32] convert to_detach
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 14 Jan 2014 13:32:49 +0000
- Subject: Re: [RFC 19/32] convert to_detach
- Authentication-results: sourceware.org; auth=none
- References: <1389640367-5571-1-git-send-email-tromey at redhat dot com> <1389640367-5571-20-git-send-email-tromey at redhat dot com>
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