aboutsummaryrefslogtreecommitdiff
path: root/gold/target-select.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-13 02:44:50 +0000
committerIan Lance Taylor <iant@google.com>2008-02-13 02:44:50 +0000
commit0daa6f62c88fe4d1dd680b09e855c4b8b7811403 (patch)
treef1d3948b1a9e9c87fa20dbac6b2437bcd81a3bf0 /gold/target-select.h
parentcaa9d5d9191af934ff7949fea080d72524c92cfa (diff)
downloadgdb-0daa6f62c88fe4d1dd680b09e855c4b8b7811403.zip
gdb-0daa6f62c88fe4d1dd680b09e855c4b8b7811403.tar.gz
gdb-0daa6f62c88fe4d1dd680b09e855c4b8b7811403.tar.bz2
Support selecting target by name.
Diffstat (limited to 'gold/target-select.h')
-rw-r--r--gold/target-select.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gold/target-select.h b/gold/target-select.h
index da27bd4..5757d5b 100644
--- a/gold/target-select.h
+++ b/gold/target-select.h
@@ -49,7 +49,13 @@ class Target_selector
// If we can handle this target, return a pointer to a target
// structure. The size and endianness are known.
- virtual Target* recognize(int machine, int osabi, int abiversion) = 0;
+ virtual Target*
+ recognize(int machine, int osabi, int abiversion) = 0;
+
+ // If NAME matches the target, return a pointer to a target
+ // structure.
+ virtual Target*
+ recognize_by_name(const char* name) = 0;
// Return the next Target_selector in the linked list.
Target_selector*
@@ -84,6 +90,10 @@ class Target_selector
extern Target* select_target(int machine, int size, bool big_endian,
int osabi, int abiversion);
+// Select a target using a BFD name.
+
+extern Target* select_target_by_name(const char* name);
+
} // End namespace gold.
#endif // !defined(GOLD_TARGET_SELECT_H)