Blame SOURCES/gdb-6.3-rh-testlibunwind-20041202.patch

2c2fa1
2003-11-17  Elena Zannoni  <ezannoni@redhat.com>
2c2fa1
   
2c2fa1
        From Jeff Johnston <jjohnstn@redhat.com>
2c2fa1
        * gdb.arch/ia64-libunwind.exp: New file.
2c2fa1
        * gdb.arch/ia64-libunwind.c: New file.
2c2fa1
2c2fa1
2004-08-03  Jeff Johnston  <jjohnstn@redhat.com>
2c2fa1
   
2c2fa1
        * gdb.arch/ia64-libunwind.exp: Fix test string to match
2c2fa1
	current code base.
2c2fa1
2c2fa1
	[ acquire_unwind_info -> ia64_find_proc_info_x ]
2c2fa1
2c2fa1
2009-04-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2c2fa1
2c2fa1
	Remove a race from send_gdb "COMMAND\n".
2c2fa1
	Cleanup.
2c2fa1
	Merge in: Patch4: gdb-6.3-rh-testlibunwind1fix-20041202.patch
2c2fa1
 
2c2fa1
--- /dev/null	2009-04-19 08:52:54.499000000 +0200
2c2fa1
+++ gdb-6.8/gdb/testsuite/gdb.arch/ia64-libunwind.c	2009-04-30 19:15:16.000000000 +0200
2c2fa1
@@ -0,0 +1,26 @@
2c2fa1
+/* Copyright 2003, 2009 Free Software Foundation, Inc.
2c2fa1
+
2c2fa1
+   This file is part of GDB.
2c2fa1
+
2c2fa1
+   This program is free software; you can redistribute it and/or modify
2c2fa1
+   it under the terms of the GNU General Public License as published by
2c2fa1
+   the Free Software Foundation; either version 3 of the License, or
2c2fa1
+   (at your option) any later version.
2c2fa1
+
2c2fa1
+   This program is distributed in the hope that it will be useful,
2c2fa1
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
2c2fa1
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2c2fa1
+   GNU General Public License for more details.
2c2fa1
+
2c2fa1
+   You should have received a copy of the GNU General Public License
2c2fa1
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
2c2fa1
+
2c2fa1
+#include <stdio.h>
2c2fa1
+
2c2fa1
+int
2c2fa1
+main ()
2c2fa1
+{
2c2fa1
+  printf ("hello world\n");
2c2fa1
+ 
2c2fa1
+  return 0;
2c2fa1
+}
2c2fa1
--- /dev/null	2009-04-19 08:52:54.499000000 +0200
2c2fa1
+++ gdb-6.8/gdb/testsuite/gdb.arch/ia64-libunwind.exp	2009-04-30 19:19:22.000000000 +0200
2c2fa1
@@ -0,0 +1,52 @@
2c2fa1
+# Copyright 2003, 2009 Free Software Foundation, Inc.
2c2fa1
+
2c2fa1
+# This program is free software; you can redistribute it and/or modify
2c2fa1
+# it under the terms of the GNU General Public License as published by
2c2fa1
+# the Free Software Foundation; either version 2 of the License, or
2c2fa1
+# (at your option) any later version.
2c2fa1
+# 
2c2fa1
+# This program is distributed in the hope that it will be useful,
2c2fa1
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2c2fa1
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2c2fa1
+# GNU General Public License for more details.
2c2fa1
+# 
2c2fa1
+# You should have received a copy of the GNU General Public License
2c2fa1
+# along with this program; if not, write to the Free Software
2c2fa1
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
2c2fa1
+
2c2fa1
+# Please email any bugs, comments, and/or additions to this file to:
2c2fa1
+# bug-gdb@prep.ai.mit.edu
2c2fa1
+
2c2fa1
+# This file was written by Jeff Johnston (jjohnstn@redhat.com)
2c2fa1
+
2c2fa1
+if ![istarget "ia64-*-*"] then {
2c2fa1
+    return
2c2fa1
+}
2c2fa1
+
2c2fa1
+set testfile "ia64-libunwind"
2c2fa1
+set srcfile ${testfile}.c
2c2fa1
+set binfile ${objdir}/${subdir}/${testfile}
2c2fa1
+
2c2fa1
+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
2c2fa1
+    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
2c2fa1
+}
2c2fa1
+
2c2fa1
+if [get_compiler_info ${binfile}] {
2c2fa1
+    return -1
2c2fa1
+}
2c2fa1
+
2c2fa1
+gdb_exit
2c2fa1
+gdb_start
2c2fa1
+gdb_reinitialize_dir $srcdir/$subdir
2c2fa1
+gdb_load ${binfile}
2c2fa1
+
2c2fa1
+gdb_test "set debug arch 1"
2c2fa1
+gdb_breakpoint "main"
2c2fa1
+gdb_run_cmd
2c2fa1
+
2c2fa1
+set test "libunwind message"
2c2fa1
+gdb_test_multiple "" $test {
2c2fa1
+    -re "ia64_find_proc_info_x.*$gdb_prompt $" {
2c2fa1
+	pass $test
2c2fa1
+    }
2c2fa1
+}