keiths / rpms / gdb

Forked from rpms/gdb 4 months ago
Clone
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.
f4df2f3
f4df2f3
2004-08-03  Jeff Johnston  <jjohnstn@redhat.com>
f4df2f3
   
f4df2f3
        * gdb.arch/ia64-libunwind.exp: Fix test string to match
f4df2f3
	current code base.
f4df2f3
f4df2f3
	[ acquire_unwind_info -> ia64_find_proc_info_x ]
f4df2f3
f4df2f3
2009-04-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
f4df2f3
f4df2f3
	Remove a race from send_gdb "COMMAND\n".
f4df2f3
	Cleanup.
f4df2f3
	Merge in: Patch4: gdb-6.3-rh-testlibunwind1fix-20041202.patch
75eaddb
 
f4df2f3
--- /dev/null	2009-04-19 08:52:54.499000000 +0200
f4df2f3
+++ gdb-6.8/gdb/testsuite/gdb.arch/ia64-libunwind.c	2009-04-30 19:15:16.000000000 +0200
f4df2f3
@@ -0,0 +1,26 @@
f4df2f3
+/* Copyright 2003, 2009 Free Software Foundation, Inc.
f4df2f3
+
f4df2f3
+   This file is part of GDB.
f4df2f3
+
f4df2f3
+   This program is free software; you can redistribute it and/or modify
f4df2f3
+   it under the terms of the GNU General Public License as published by
f4df2f3
+   the Free Software Foundation; either version 3 of the License, or
f4df2f3
+   (at your option) any later version.
f4df2f3
+
f4df2f3
+   This program is distributed in the hope that it will be useful,
f4df2f3
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
f4df2f3
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f4df2f3
+   GNU General Public License for more details.
f4df2f3
+
f4df2f3
+   You should have received a copy of the GNU General Public License
f4df2f3
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
f4df2f3
+
f4df2f3
+#include <stdio.h>
f4df2f3
+
f4df2f3
+int
f4df2f3
+main ()
f4df2f3
+{
f4df2f3
+  printf ("hello world\n");
f4df2f3
+ 
f4df2f3
+  return 0;
f4df2f3
+}
f4df2f3
--- /dev/null	2009-04-19 08:52:54.499000000 +0200
f4df2f3
+++ gdb-6.8/gdb/testsuite/gdb.arch/ia64-libunwind.exp	2009-04-30 19:19:22.000000000 +0200
f4df2f3
@@ -0,0 +1,52 @@
f4df2f3
+# Copyright 2003, 2009 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 ![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
+
f4df2f3
+gdb_test "set debug arch 1"
f4df2f3
+gdb_breakpoint "main"
f4df2f3
+gdb_run_cmd
75eaddb
+
f4df2f3
+set test "libunwind message"
f4df2f3
+gdb_test_multiple "" $test {
f4df2f3
+    -re "ia64_find_proc_info_x.*$gdb_prompt $" {
f4df2f3
+	pass $test
f4df2f3
+    }
f4df2f3
+}