gdb: remove copy_inferior_target_desc_info

This function is now trivial, we can just copy inferior::tdesc_info
where needed.

Change-Id: I25185e2cd4ba1ef24a822d9e0eebec6e611d54d6
This commit is contained in:
Simon Marchi
2023-02-03 09:21:25 -05:00
committed by Simon Marchi
parent 6b0b81b9f2
commit 5776836631
4 changed files with 3 additions and 21 deletions

View File

@@ -962,7 +962,7 @@ clone_inferior_command (const char *args, int from_tty)
/* If the original inferior had a user specified target
description, make the clone use it too. */
if (target_desc_info_from_user_p (&inf->tdesc_info))
copy_inferior_target_desc_info (inf, orginf);
inf->tdesc_info = orginf->tdesc_info;
clone_program_space (pspace, orginf->pspace);