1 diff -up -ruNp gdb-6.5-orig/gdb/testsuite/gdb.base/datalib-lib.c gdb-6.5/gdb/testsuite/gdb.base/datalib-lib.c
2 --- gdb-6.5-orig/gdb/testsuite/gdb.base/datalib-lib.c 1969-12-31 19:00:00.000000000 -0500
3 +++ gdb-6.5/gdb/testsuite/gdb.base/datalib-lib.c 2008-05-29 13:51:50.000000000 -0400
5 +/* This testcase is part of GDB, the GNU debugger.
7 + Copyright 2008 Free Software Foundation, Inc.
9 + This program is free software; you can redistribute it and/or modify
10 + it under the terms of the GNU General Public License as published by
11 + the Free Software Foundation; either version 2 of the License, or
12 + (at your option) any later version.
14 + This program is distributed in the hope that it will be useful,
15 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 + GNU General Public License for more details.
19 + You should have received a copy of the GNU General Public License
20 + along with this program; if not, write to the Free Software
21 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 + Please email any bugs, comments, and/or additions to this file to:
24 + bug-gdb@prep.ai.mit.edu */
27 diff -up -ruNp gdb-6.5-orig/gdb/testsuite/gdb.base/datalib-main.c gdb-6.5/gdb/testsuite/gdb.base/datalib-main.c
28 --- gdb-6.5-orig/gdb/testsuite/gdb.base/datalib-main.c 1969-12-31 19:00:00.000000000 -0500
29 +++ gdb-6.5/gdb/testsuite/gdb.base/datalib-main.c 2008-05-29 13:51:39.000000000 -0400
31 +/* This testcase is part of GDB, the GNU debugger.
33 + Copyright 2008 Free Software Foundation, Inc.
35 + This program is free software; you can redistribute it and/or modify
36 + it under the terms of the GNU General Public License as published by
37 + the Free Software Foundation; either version 2 of the License, or
38 + (at your option) any later version.
40 + This program is distributed in the hope that it will be useful,
41 + but WITHOUT ANY WARRANTY; without even the implied warranty of
42 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 + GNU General Public License for more details.
45 + You should have received a copy of the GNU General Public License
46 + along with this program; if not, write to the Free Software
47 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
49 + Please email any bugs, comments, and/or additions to this file to:
50 + bug-gdb@prep.ai.mit.edu */
57 diff -up -ruNp gdb-6.5-orig/gdb/testsuite/gdb.base/datalib.exp gdb-6.5/gdb/testsuite/gdb.base/datalib.exp
58 --- gdb-6.5-orig/gdb/testsuite/gdb.base/datalib.exp 1969-12-31 19:00:00.000000000 -0500
59 +++ gdb-6.5/gdb/testsuite/gdb.base/datalib.exp 2008-05-29 14:58:33.000000000 -0400
61 +# Copyright 2008 Free Software Foundation, Inc.
63 +# This program is free software; you can redistribute it and/or modify
64 +# it under the terms of the GNU General Public License as published by
65 +# the Free Software Foundation; either version 2 of the License, or
66 +# (at your option) any later version.
68 +# This program is distributed in the hope that it will be useful,
69 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
70 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
71 +# GNU General Public License for more details.
73 +# You should have received a copy of the GNU General Public License
74 +# along with this program; if not, write to the Free Software
75 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
78 +set srcfilemain ${testfile}-main.c
79 +set srcfilelib ${testfile}-lib.c
80 +set libfile ${objdir}/${subdir}/${testfile}-lib.so
81 +set binfile ${objdir}/${subdir}/${testfile}-main
82 +if { [gdb_compile "${srcdir}/${subdir}/${srcfilelib}" "${libfile}" executable [list debug {additional_flags=-shared -nostdlib}]] != "" } {
83 + untested "Couldn't compile test program"
86 +if { [gdb_compile "${srcdir}/${subdir}/${srcfilemain}" "${binfile} ${libfile}" executable {debug}] != "" } {
87 + untested "Couldn't compile test program"
91 +# Get things started.
95 +gdb_reinitialize_dir $srcdir/$subdir
98 +# We must use a separate library as the main executable is compiled to the
99 +# address 0 by default and it would get fixed up already at the end of
100 +# INIT_OBJFILE_SECT_INDICES. We also cannot PRELINK it as PRELINK is missing
101 +# on ia64. The library must be NOSTDLIB as otherwise some stub code would
102 +# create the `.text' section there. Also DEBUG option is useful as some of
103 +# the crashes occur in dwarf2read.c.
106 +# ../../gdb/ia64-tdep.c:2838: internal-error: sect_index_text not initialized
107 +# A problem internal to GDB has been detected,
110 + "main \\(\\) at .*${srcfilemain}.*" \