From 79846903c6289b2ff12d1830bc2cbf900710556c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 3 Feb 2023 09:21:23 -0500 Subject: gdb: change inferior::tdesc_info to non-pointer I initially made this field a unique pointer, to have automatic memory management. But I then thought that the field didn't really need to be allocated separately from struct inferior. So make it a regular non-pointer field of inferior. Remove target_desc_info_free, as it's no longer needed. Change-Id: Ica2b97071226f31c40e86222a2f6922454df1229 --- gdb/target-descriptions.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gdb/target-descriptions.h') diff --git a/gdb/target-descriptions.h b/gdb/target-descriptions.h index 93bf382..c337c17 100644 --- a/gdb/target-descriptions.h +++ b/gdb/target-descriptions.h @@ -55,10 +55,6 @@ const struct target_desc *target_current_description (void); void copy_inferior_target_desc_info (struct inferior *destinf, struct inferior *srcinf); -/* Free a target_desc_info object. */ - -void target_desc_info_free (struct target_desc_info *tdesc_info); - /* Returns true if INFO indicates the target description had been supplied by the user. */ -- cgit v1.1