summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/abstract-origin.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-04-27 08:36:15 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-04-27 08:36:15 +0000
commitad41c1200c6e5364d622811f213e5dd5a574ede6 (patch)
tree237db6848fa75f65e02f724d204c76037f916576 /gdb/testsuite/gdb.cp/abstract-origin.exp
parentfa34d2ad0bad663d44c1d0a3a32ba14e42736b25 (diff)
downloadgdb-ad41c1200c6e5364d622811f213e5dd5a574ede6.tar.gz
gdb/
PR gdb/9675: * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New. (read_func_scope): Call inherit_abstract_dies. gdb/testsuite/ * gdb.cp/abstract-origin.exp, gdb.cp/abstract-origin.cc: New test.
Diffstat (limited to 'gdb/testsuite/gdb.cp/abstract-origin.exp')
-rw-r--r--gdb/testsuite/gdb.cp/abstract-origin.exp31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/abstract-origin.exp b/gdb/testsuite/gdb.cp/abstract-origin.exp
new file mode 100644
index 00000000000..9ba1194e8d1
--- /dev/null
+++ b/gdb/testsuite/gdb.cp/abstract-origin.exp
@@ -0,0 +1,31 @@
+# Copyright 2009 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+set testfile abstract-origin
+set srcfile ${testfile}.cc
+if [prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}] {
+ return -1
+}
+
+if ![runto_main] {
+ untested abstract-origin
+ return -1
+}
+
+gdb_breakpoint [gdb_get_line_number "break-here"]
+gdb_continue_to_breakpoint "break-here"
+
+# The Bug was: No symbol "problem" in current context.
+gdb_test "p problem" " = \\(int \\*\\) 0x.*"