]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-archer-next-over-throw-cxx-exec.patch
- typo
[packages/gdb.git] / gdb-archer-next-over-throw-cxx-exec.patch
CommitLineData
51a5ef0f
PS
1Archer-upstreamed:
2http://sourceware.org/ml/archer/2010-q2/msg00031.html
3
4--- ./gdb/testsuite/gdb.cp/cxxexec.cc 1970-01-01 01:00:00.000000000 +0100
5+++ ./gdb/testsuite/gdb.cp/cxxexec.cc 2010-05-29 01:18:56.000000000 +0200
6@@ -0,0 +1,25 @@
7+/* This test script is part of GDB, the GNU debugger.
8+
9+ Copyright 2010 Free Software Foundation, Inc.
10+
11+ This program is free software; you can redistribute it and/or modify
12+ it under the terms of the GNU General Public License as published by
13+ the Free Software Foundation; either version 3 of the License, or
14+ (at your option) any later version.
15+
16+ This program is distributed in the hope that it will be useful,
17+ but WITHOUT ANY WARRANTY; without even the implied warranty of
18+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+ GNU General Public License for more details.
20+
21+ You should have received a copy of the GNU General Public License
22+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
23+
24+#include <unistd.h>
25+
26+int
27+main()
28+{
29+ execlp ("true", "true", NULL);
30+ return 1;
31+}
32--- ./gdb/testsuite/gdb.cp/cxxexec.exp 1970-01-01 01:00:00.000000000 +0100
33+++ ./gdb/testsuite/gdb.cp/cxxexec.exp 2010-05-29 01:29:25.000000000 +0200
34@@ -0,0 +1,51 @@
35+# Copyright 2010 Free Software Foundation, Inc.
36+
37+# This program is free software; you can redistribute it and/or modify
38+# it under the terms of the GNU General Public License as published by
39+# the Free Software Foundation; either version 3 of the License, or
40+# (at your option) any later version.
41+#
42+# This program is distributed in the hope that it will be useful,
43+# but WITHOUT ANY WARRANTY; without even the implied warranty of
44+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45+# GNU General Public License for more details.
46+#
47+# You should have received a copy of the GNU General Public License
48+# along with this program. If not, see <http://www.gnu.org/licenses/>.
49+
50+if { [skip_cplus_tests] } { continue }
51+
52+set testfile cxxexec
53+if { [prepare_for_testing ${testfile}.exp ${testfile} ${testfile}.cc {c++ debug}] } {
54+ return -1
55+}
56+
57+runto_main
58+
59+# We could stop after `continue' again at `main'.
60+delete_breakpoints
61+
62+set test "p _Unwind_DebugHook"
63+gdb_test_multiple $test $test {
64+ -re " = .* 0x\[0-9a-f\].*\r\n$gdb_prompt $" {
65+ pass $test
66+ }
67+ -re "\r\nNo symbol .*\r\n$gdb_prompt $" {
68+ xfail $test
69+ untested ${testfile}.exp
70+ return -1
71+ }
72+}
73+
74+set test continue
75+gdb_test_multiple $test $test {
76+ -re "Cannot access memory at address 0x\[0-9a-f\]+\r\n$gdb_prompt $" {
77+ fail $test
78+ }
79+ -re "\r\n$gdb_prompt $" {
80+ pass $test
81+ }
82+}
83+
84+# `info inferiors' can show <null> on older GDBs.
85+gdb_test "info threads" "info threads" "program finished"
This page took 0.092079 seconds and 4 git commands to generate.