]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-6.3-rh-testlibunwind-20041202.patch
- obsolete file
[packages/gdb.git] / gdb-6.3-rh-testlibunwind-20041202.patch
CommitLineData
3a58abaf
AM
12003-11-17 Elena Zannoni <ezannoni@redhat.com>
2
3 From Jeff Johnston <jjohnstn@redhat.com>
4 * gdb.arch/ia64-libunwind.exp: New file.
5 * gdb.arch/ia64-libunwind.c: New file.
6
7--- /dev/null Thu Apr 11 10:25:15 2002
8+++ gdb+dejagnu-20040223/gdb/testsuite/gdb.arch/ia64-libunwind.exp Mon Nov 17 15:57:04 2003
9@@ -0,0 +1,55 @@
10+# Copyright 2003 Free Software Foundation, Inc.
11+
12+# This program is free software; you can redistribute it and/or modify
13+# it under the terms of the GNU General Public License as published by
14+# the Free Software Foundation; either version 2 of the License, or
15+# (at your option) any later version.
16+#
17+# This program is distributed in the hope that it will be useful,
18+# but WITHOUT ANY WARRANTY; without even the implied warranty of
19+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+# GNU General Public License for more details.
21+#
22+# You should have received a copy of the GNU General Public License
23+# along with this program; if not, write to the Free Software
24+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25+
26+# Please email any bugs, comments, and/or additions to this file to:
27+# bug-gdb@prep.ai.mit.edu
28+
29+# This file was written by Jeff Johnston (jjohnstn@redhat.com)
30+
31+if $tracelevel then {
32+ strace $tracelevel
33+}
34+
35+#
36+# test running programs
37+#
38+set prms_id 0
39+set bug_id 0
40+
41+if ![istarget "ia64-*-*"] then {
42+ return
43+}
44+
45+set testfile "ia64-libunwind"
46+set srcfile ${testfile}.c
47+set binfile ${objdir}/${subdir}/${testfile}
48+
49+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
50+ gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
51+}
52+
53+if [get_compiler_info ${binfile}] {
54+ return -1
55+}
56+
57+gdb_exit
58+gdb_start
59+gdb_reinitialize_dir $srcdir/$subdir
60+gdb_load ${binfile}
61+send_gdb "set debug arch 1\n"
62+send_gdb "break main\n"
63+gdb_test "run" ".*acquire_unwind_info.*"
64+
65--- /dev/null Thu Apr 11 10:25:15 2002
66+++ gdb+dejagnu-20040223/gdb/testsuite/gdb.arch/ia64-libunwind.c Mon Nov 17 15:58:27 2003
67@@ -0,0 +1,9 @@
68+#include <stdio.h>
69+
70+int main()
71+{
72+ printf ("hello world\n");
73+
74+ return 0;
75+}
76+
This page took 0.059293 seconds and 4 git commands to generate.