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

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