This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v14 4/5] Function is_known_elf_target.
- From: Nicolas Blanc <nicolas dot blanc at intel dot com>
- To: gdb-patches at sourceware dot org
- Cc: lgustavo at codesourcery dot com, nicolas dot blanc at intel dot com
- Date: Mon, 29 Jul 2013 10:28:09 +0200
- Subject: [PATCH v14 4/5] Function is_known_elf_target.
- References: <1375086490-14352-1-git-send-email-nicolas dot blanc at intel dot com>
2013-17-07 Nicolas Blanc <nicolas.blanc@intel.com>
gdb/testsuite
* lib/gdb.exp (is_known_elf_target): New function.
Signed-off-by: Nicolas Blanc <nicolas.blanc@intel.com>
---
gdb/testsuite/lib/gdb.exp | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 70b797e..9ae304f 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1782,6 +1782,21 @@ proc supports_reverse {} {
return 0
}
+# Return 1 if target is known to support ELF.
+proc is_known_elf_target {} {
+
+ if { [istarget "*-*-linux*"]
+ || [istarget "*-*-gnu*"]
+ || [istarget "*-*-elf*"]
+ || [istarget "arm*-*-eabi*"]
+ || [istarget "arm*-*-symbianelf*"]
+ || [istarget "powerpc-*-eabi*"] } {
+ return 1
+ }
+
+ return 0
+}
+
# Return 1 if target is ILP32.
# This cannot be decided simply from looking at the target string,
# as it might depend on externally passed compiler options like -m64.
--
1.7.6.5