1 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218379
4 --- /dev/null 2006-12-17 14:18:21.881669220 -0500
5 +++ gdb-6.5/gdb/testsuite/gdb.base/step-over-trampoline.exp 2006-12-17 16:52:51.000000000 -0500
7 +# Copyright 2006 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 +if $tracelevel then {
27 +set testfile step-over-trampoline
28 +set srcfile ${testfile}.c
29 +set binfile ${objdir}/${subdir}/${testfile}
30 +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
31 + untested "Couldn't compile test program"
35 +# Get things started.
39 +gdb_reinitialize_dir $srcdir/$subdir
42 +# For C programs, "start" should stop in main().
45 + "main \\(\\) at .*$srcfile.*" \
48 +# main () at hello2.c:5
49 +# 5 puts("hello world\n");
51 +# 0x100007e0 in call___do_global_ctors_aux ()
53 +gdb_test_multiple "next" "invalid `next' output" {
54 + -re "\nhello world.*return 0;.*" {
57 + -re " in call___do_global_ctors_aux \\(\\).*" {
58 + fail "stepped into trampoline"
61 --- /dev/null 2006-12-17 14:18:21.881669220 -0500
62 +++ gdb-6.5/gdb/testsuite/gdb.base/step-over-trampoline.c 2006-12-17 16:18:12.000000000 -0500
64 +/* This testcase is part of GDB, the GNU debugger.
66 + Copyright 2006 Free Software Foundation, Inc.
68 + This program is free software; you can redistribute it and/or modify
69 + it under the terms of the GNU General Public License as published by
70 + the Free Software Foundation; either version 2 of the License, or
71 + (at your option) any later version.
73 + This program is distributed in the hope that it will be useful,
74 + but WITHOUT ANY WARRANTY; without even the implied warranty of
75 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
76 + GNU General Public License for more details.
78 + You should have received a copy of the GNU General Public License
79 + along with this program; if not, write to the Free Software
80 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
82 + Please email any bugs, comments, and/or additions to this file to:
83 + bug-gdb@prep.ai.mit.edu */
89 + puts ("hello world");