Re: [PATCH] gdb: Delay releasing target_desc_up in more cases

Andrew Burgess
2020-10-09T10:47:35Z

* Shahab Vahedi <Shahab.Vahedi@synopsys.com> [2020-10-08 16:54:31 +0000]:

> Hi Andrew,
>
> With a little bit of an extra change [1], everything works fine. Thank you for
> fixing this in ARC port as well.
>
>
> Cheers,
> Shahab
>
>
> [1] Changing the "arc_create_traget_description" proto type in the header file
> diff --git a/gdb/arch/arc.h b/gdb/arch/arc.h
> index 16257596748..1e0e8cd9635 100644
> --- a/gdb/arch/arc.h
> +++ b/gdb/arch/arc.h
> @@ -70,7 +70,7 @@ struct arc_arch_features
> The only external client of this must be the gdbserver which manipulates
> the returned data. */
>
> -target_desc *arc_create_target_description
> +target_desc_up arc_create_target_description
> (const struct arc_arch_features &features);
>
> #else
>

Thanks. I pushed this patch with your fix applied.

Andrew