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

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