../commit.txt~
[binutils-gdb.git] / gdb / testsuite / gdb.arch / i386-prologue.exp
index c1195ea9efe340b9662f6e447c25a1c184115024..f69c42bb3c76ebf47b017962322c8ab98b6b3c45 100644 (file)
@@ -1,4 +1,5 @@
-# Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011
+# Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,10 +25,8 @@ if $tracelevel {
 
 # Test i386 prologue analyzer.
 
-set prms_id 0
-set bug_id 0
 
-if ![istarget "i?86-*-*"] then {
+if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]) || ![is_ilp32_target] } then {
     verbose "Skipping i386 prologue tests."
     return
 }
@@ -37,11 +36,7 @@ set srcfile ${testfile}.c
 set binfile ${objdir}/${subdir}/${testfile}
 
 # some targets have leading underscores on assembly symbols.
-# TODO: detect this automatically
-set additional_flags ""
-if [istarget "i?86-*-cygwin*"] then {
-  set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\""
-}   
+set additional_flags [gdb_target_symbol_prefix_flags]
 
 # Don't use "debug", so that we don't have line information for the assembly
 # fragments.
@@ -203,7 +198,7 @@ gdb_test "backtrace 10" \
        "#0\[ \t\]*$hex in gdb1718.*\r\n#1\[ \t\]*$hex in main.*" \
        "backtrace in gdb1718"
 
-setup_kfail *-*-* gdb/1718
+setup_kfail gdb/1718 *-*-*
 gdb_test "info frame" \
        ".*Saved registers:.*esi at.*ebx at.*eip at.*" \
        "saved registers in gdb1718"