]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-6.3-rh-testlibunwind-20041202.patch
- update to 6.8.91.20090930-1 from fedora
[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.
7566401a
ER
6
72004-08-03 Jeff Johnston <jjohnstn@redhat.com>
8
9 * gdb.arch/ia64-libunwind.exp: Fix test string to match
10 current code base.
11
12 [ acquire_unwind_info -> ia64_find_proc_info_x ]
13
142009-04-30 Jan Kratochvil <jan.kratochvil@redhat.com>
15
16 Remove a race from send_gdb "COMMAND\n".
17 Cleanup.
18 Merge in: Patch4: gdb-6.3-rh-testlibunwind1fix-20041202.patch
3a58abaf 19
7566401a
ER
20--- /dev/null 2009-04-19 08:52:54.499000000 +0200
21+++ gdb-6.8/gdb/testsuite/gdb.arch/ia64-libunwind.c 2009-04-30 19:15:16.000000000 +0200
22@@ -0,0 +1,26 @@
23+/* Copyright 2003, 2009 Free Software Foundation, Inc.
24+
25+ This file is part of GDB.
26+
27+ This program is free software; you can redistribute it and/or modify
28+ it under the terms of the GNU General Public License as published by
29+ the Free Software Foundation; either version 3 of the License, or
30+ (at your option) any later version.
31+
32+ This program is distributed in the hope that it will be useful,
33+ but WITHOUT ANY WARRANTY; without even the implied warranty of
34+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35+ GNU General Public License for more details.
36+
37+ You should have received a copy of the GNU General Public License
38+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
39+
40+#include <stdio.h>
41+
42+int
43+main ()
44+{
45+ printf ("hello world\n");
46+
47+ return 0;
48+}
49--- /dev/null 2009-04-19 08:52:54.499000000 +0200
50+++ gdb-6.8/gdb/testsuite/gdb.arch/ia64-libunwind.exp 2009-04-30 19:19:22.000000000 +0200
51@@ -0,0 +1,52 @@
52+# Copyright 2003, 2009 Free Software Foundation, Inc.
3a58abaf
AM
53+
54+# This program is free software; you can redistribute it and/or modify
55+# it under the terms of the GNU General Public License as published by
56+# the Free Software Foundation; either version 2 of the License, or
57+# (at your option) any later version.
58+#
59+# This program is distributed in the hope that it will be useful,
60+# but WITHOUT ANY WARRANTY; without even the implied warranty of
61+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
62+# GNU General Public License for more details.
63+#
64+# You should have received a copy of the GNU General Public License
65+# along with this program; if not, write to the Free Software
66+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
67+
68+# Please email any bugs, comments, and/or additions to this file to:
69+# bug-gdb@prep.ai.mit.edu
70+
71+# This file was written by Jeff Johnston (jjohnstn@redhat.com)
72+
3a58abaf
AM
73+if ![istarget "ia64-*-*"] then {
74+ return
75+}
76+
77+set testfile "ia64-libunwind"
78+set srcfile ${testfile}.c
79+set binfile ${objdir}/${subdir}/${testfile}
80+
81+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
82+ gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
83+}
84+
85+if [get_compiler_info ${binfile}] {
86+ return -1
87+}
88+
89+gdb_exit
90+gdb_start
91+gdb_reinitialize_dir $srcdir/$subdir
92+gdb_load ${binfile}
3a58abaf 93+
7566401a
ER
94+gdb_test "set debug arch 1"
95+gdb_breakpoint "main"
96+gdb_run_cmd
3a58abaf 97+
7566401a
ER
98+set test "libunwind message"
99+gdb_test_multiple "" $test {
100+ -re "ia64_find_proc_info_x.*$gdb_prompt $" {
101+ pass $test
102+ }
103+}
This page took 0.047504 seconds and 4 git commands to generate.