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

Shahab Vahedi via Gdb-patches
2020-10-08T16:54:39Z

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