Blame SOURCES/gdb-archer-next-over-throw-cxx-exec.patch

7a6771
Archer-upstreamed:
7a6771
http://sourceware.org/ml/archer/2010-q2/msg00031.html
7a6771
7a6771
--- ./gdb/testsuite/gdb.cp/cxxexec.cc	1970-01-01 01:00:00.000000000 +0100
7a6771
+++ ./gdb/testsuite/gdb.cp/cxxexec.cc	2010-05-29 01:18:56.000000000 +0200
7a6771
@@ -0,0 +1,25 @@
7a6771
+/* This test script is part of GDB, the GNU debugger.
7a6771
+
7a6771
+   Copyright 2010 Free Software Foundation, Inc.
7a6771
+
7a6771
+   This program is free software; you can redistribute it and/or modify
7a6771
+   it under the terms of the GNU General Public License as published by
7a6771
+   the Free Software Foundation; either version 3 of the License, or
7a6771
+   (at your option) any later version.
7a6771
+
7a6771
+   This program is distributed in the hope that it will be useful,
7a6771
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
7a6771
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7a6771
+   GNU General Public License for more details.
7a6771
+
7a6771
+   You should have received a copy of the GNU General Public License
7a6771
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
7a6771
+
7a6771
+#include <unistd.h>
7a6771
+
7a6771
+int
7a6771
+main()
7a6771
+{
7a6771
+  execlp ("true", "true", NULL);
7a6771
+  return 1;
7a6771
+}
7a6771
--- ./gdb/testsuite/gdb.cp/cxxexec.exp	1970-01-01 01:00:00.000000000 +0100
7a6771
+++ ./gdb/testsuite/gdb.cp/cxxexec.exp	2010-05-29 01:29:25.000000000 +0200
7a6771
@@ -0,0 +1,51 @@
7a6771
+# Copyright 2010 Free Software Foundation, Inc.
7a6771
+
7a6771
+# This program is free software; you can redistribute it and/or modify
7a6771
+# it under the terms of the GNU General Public License as published by
7a6771
+# the Free Software Foundation; either version 3 of the License, or
7a6771
+# (at your option) any later version.
7a6771
+#
7a6771
+# This program is distributed in the hope that it will be useful,
7a6771
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
7a6771
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7a6771
+# GNU General Public License for more details.
7a6771
+#
7a6771
+# You should have received a copy of the GNU General Public License
7a6771
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
7a6771
+
7a6771
+if { [skip_cplus_tests] } { continue }
7a6771
+
7a6771
+set testfile cxxexec
7a6771
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${testfile}.cc {c++ debug}] } {
7a6771
+    return -1
7a6771
+}
7a6771
+
7a6771
+runto_main
7a6771
+
7a6771
+# We could stop after `continue' again at `main'.
7a6771
+delete_breakpoints
7a6771
+
7a6771
+set test "p _Unwind_DebugHook"
7a6771
+gdb_test_multiple $test $test {
7a6771
+    -re " = .* 0x\[0-9a-f\].*\r\n$gdb_prompt $" {
7a6771
+	pass $test
7a6771
+    }
7a6771
+    -re "\r\nNo symbol .*\r\n$gdb_prompt $" {
7a6771
+	xfail $test
7a6771
+	untested ${testfile}.exp
7a6771
+	return -1
7a6771
+    }
7a6771
+}
7a6771
+
7a6771
+set test continue
7a6771
+gdb_test_multiple $test $test {
7a6771
+    -re "Cannot access memory at address 0x\[0-9a-f\]+\r\n$gdb_prompt $" {
7a6771
+	fail $test
7a6771
+    }
7a6771
+    -re "\r\n$gdb_prompt $" {
7a6771
+	pass $test
7a6771
+    }
7a6771
+}
7a6771
+
7a6771
+# `info inferiors' can show <null> on older GDBs.
7a6771
+gdb_test "info threads" "info threads" "program finished"