75eaddb
2003-11-17  Elena Zannoni  <ezannoni@redhat.com>
75eaddb
   
75eaddb
        From Jeff Johnston <jjohnstn@redhat.com>
75eaddb
        * gdb.arch/ia64-libunwind.exp: New file.
75eaddb
        * gdb.arch/ia64-libunwind.c: New file.
75eaddb
 
75eaddb
--- /dev/null	Thu Apr 11 10:25:15 2002
75eaddb
+++ gdb+dejagnu-20040223/gdb/testsuite/gdb.arch/ia64-libunwind.exp	Mon Nov 17 15:57:04 2003
75eaddb
@@ -0,0 +1,55 @@
75eaddb
+#   Copyright 2003 Free Software Foundation, Inc.
75eaddb
+
75eaddb
+# This program is free software; you can redistribute it and/or modify
75eaddb
+# it under the terms of the GNU General Public License as published by
75eaddb
+# the Free Software Foundation; either version 2 of the License, or
75eaddb
+# (at your option) any later version.
75eaddb
+# 
75eaddb
+# This program is distributed in the hope that it will be useful,
75eaddb
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
75eaddb
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
75eaddb
+# GNU General Public License for more details.
75eaddb
+# 
75eaddb
+# You should have received a copy of the GNU General Public License
75eaddb
+# along with this program; if not, write to the Free Software
75eaddb
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
75eaddb
+
75eaddb
+# Please email any bugs, comments, and/or additions to this file to:
75eaddb
+# bug-gdb@prep.ai.mit.edu
75eaddb
+
75eaddb
+# This file was written by Jeff Johnston (jjohnstn@redhat.com)
75eaddb
+
75eaddb
+if $tracelevel then {
75eaddb
+    strace $tracelevel
75eaddb
+}
75eaddb
+
75eaddb
+#
75eaddb
+# test running programs
75eaddb
+#
75eaddb
+set prms_id 0
75eaddb
+set bug_id 0
75eaddb
+
75eaddb
+if ![istarget "ia64-*-*"] then {
75eaddb
+    return
75eaddb
+}
75eaddb
+
75eaddb
+set testfile "ia64-libunwind"
75eaddb
+set srcfile ${testfile}.c
75eaddb
+set binfile ${objdir}/${subdir}/${testfile}
75eaddb
+
75eaddb
+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
75eaddb
+    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
75eaddb
+}
75eaddb
+
75eaddb
+if [get_compiler_info ${binfile}] {
75eaddb
+    return -1
75eaddb
+}
75eaddb
+
75eaddb
+gdb_exit
75eaddb
+gdb_start
75eaddb
+gdb_reinitialize_dir $srcdir/$subdir
75eaddb
+gdb_load ${binfile}
75eaddb
+send_gdb "set debug arch 1\n"
75eaddb
+send_gdb "break main\n"
75eaddb
+gdb_test "run" ".*acquire_unwind_info.*"
75eaddb
+ 
75eaddb
--- /dev/null	Thu Apr 11 10:25:15 2002
75eaddb
+++ gdb+dejagnu-20040223/gdb/testsuite/gdb.arch/ia64-libunwind.c	Mon Nov 17 15:58:27 2003
75eaddb
@@ -0,0 +1,9 @@
75eaddb
+#include <stdio.h>
75eaddb
+
75eaddb
+int main()
75eaddb
+{
75eaddb
+  printf ("hello world\n");
75eaddb
+ 
75eaddb
+  return 0;
75eaddb
+}
75eaddb
+