diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-03 09:21:26 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-02-03 11:06:26 -0500 |
commit | 5a19bfd673d88184b5426b732178042ec24b248d (patch) | |
tree | 61c4fe2fd5c31e659dc540970de69565c1396de6 /gdb/inferior.h | |
parent | 57768366319b362bc54bd2175e09b210ce195688 (diff) | |
download | gdb-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/inferior.h')
-rw-r--r-- | gdb/inferior.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index d902881..bac483f 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -345,6 +345,11 @@ extern void switch_to_inferior_no_thread (inferior *inf); struct target_desc_info { + /* Returns true if INFO indicates the target description had been supplied by + the user. */ + bool from_user_p () + { return !this->filename.empty (); } + /* A flag indicating that a description has already been fetched from the target, so it should not be queried again. */ bool fetched = false; |