aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-descriptions.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-03 09:21:26 -0500
committerSimon Marchi <simon.marchi@efficios.com>2023-02-03 11:06:26 -0500
commit5a19bfd673d88184b5426b732178042ec24b248d (patch)
tree61c4fe2fd5c31e659dc540970de69565c1396de6 /gdb/target-descriptions.c
parent57768366319b362bc54bd2175e09b210ce195688 (diff)
downloadgdb-5a19bfd673d88184b5426b732178042ec24b248d.zip
gdb-5a19bfd673d88184b5426b732178042ec24b248d.tar.gz
gdb-5a19bfd673d88184b5426b732178042ec24b248d.tar.bz2
gdb: make target_desc_info_from_user_p a method of target_desc_info
Move the implementation over to target_desc_info. Remove the target_desc_info forward declaration in target-descriptions.h, it's no longer needed. Change-Id: Ic95060341685afe0b73af591ca6efe32f5e7e892
Diffstat (limited to 'gdb/target-descriptions.c')
-rw-r--r--gdb/target-descriptions.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 6defd5b..b08a185 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -451,14 +451,6 @@ get_arch_data (struct gdbarch *gdbarch)
return result;
}
-/* See target-descriptions.h. */
-
-int
-target_desc_info_from_user_p (struct target_desc_info *info)
-{
- return info != nullptr && !info->filename.empty ();
-}
-
/* The string manipulated by the "set tdesc filename ..." command. */
static std::string tdesc_filename_cmd_string;