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: [PATCH] fix to_open debug setting


On 07/22/2014 04:27 PM, Tom Tromey wrote:
> Tom> Later I happened to notice that add_deprecated_target_alias could use
> Tom> the same treatment.  I'll send the new patch tomorrow.
> 
> Here it is.

Looks good to me.

> +/* This is used to implement the various target commands.  */
> +
> +static void
> +open_target (char *args, int from_tty, struct cmd_list_element *command)
> +{
> +  struct target_ops *ops = get_cmd_context (command);
> +
> +  if (targetdebug)
> +    fprintf_unfiltered (gdb_stdlog, "target_open (%s, %d)\n", args, from_tty);

I think it'd be nice if this included the target's name, like your
generated debug methods.

Thanks,
-- 
Pedro Alves


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