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: [continuation args 2/2] Make continuation args not leak


On Fri, Jul 11, 2008 at 09:38:55PM +0100, Pedro Alves wrote:
> +  struct cleanup **as_cleanup_p = (struct cleanup **) &cmd_continuation;
> +  make_cleanup_ftype *continuation_hook_ftype = continuation_hook;

ftype stands for function type, and our convention is to use it for
types only.  So please don't use it in the name of a variable.
continuation_fn?

> +static void
> +finish_command_continuation_free_arg (void *arg)
> +{
> +  /* NOTE: See finish_command_continuation.  This would go away, if
> +     this suppressing is made a thread property.  */
> +  suppress_stop_observer = 0;
> +}

Doesn't it still need to call xfree?

Otherwise OK.

-- 
Daniel Jacobowitz
CodeSourcery


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